* lisp/gnus/mm-encode.el (mm-default-buffer-type): Check `major-mode'.
This commit is contained in:
parent
0b1102a704
commit
a15534f32e
1 changed files with 2 additions and 4 deletions
|
@ -109,10 +109,8 @@ This variable should never be set directly, but bound before a call to
|
|||
|
||||
(defun mm-default-buffer-type (buffer)
|
||||
"Return a default content type for BUFFER, a buffer name."
|
||||
(if (and (stringp buffer)
|
||||
(string-match-p
|
||||
(rx (| "*Diff*" "*vc-diff*" "*ediff-diff*" "*ediff-custom-diff*"))
|
||||
buffer))
|
||||
(if-let* ((buf (get-buffer buffer))
|
||||
((eq (buffer-local-value 'major-mode buf) 'diff-mode)))
|
||||
"text/x-patch" "text/plain"))
|
||||
|
||||
(defun mm-safer-encoding (encoding &optional type)
|
||||
|
|
Loading…
Add table
Reference in a new issue