]> git.eshelyaron.com Git - emacs.git/commitdiff
mail/rmail.el (rmail-get-coding-system): Check rmail-get-coding-function before ...
authorKenichi Handa <handa@gnu.org>
Fri, 10 Jan 2014 23:29:10 +0000 (08:29 +0900)
committerKenichi Handa <handa@gnu.org>
Fri, 10 Jan 2014 23:29:10 +0000 (08:29 +0900)
lisp/ChangeLog
lisp/mail/rmail.el

index 481c3cbc04a24ad808e842129b38bfacfb7bdd61..401dc6a1c7ed390b2e5598abe95aa08196634298 100644 (file)
@@ -1,3 +1,8 @@
+2014-01-10  K. Handa  <handa@gnu.org>
+
+       * mail/rmail.el (rmail-get-coding-system): Check
+       rmail-get-coding-function before "funcall"ing it.
+
 2014-01-09  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * simple.el (deactivate-mark, activate-mark): Force-mode-line-update
index 7877287f5e6e886caeb54db81a0c9f6e6798a7a4..cfde976ea0b164f29594efab4c31a0e5090cecd3 100644 (file)
@@ -1040,7 +1040,8 @@ This function also reinitializes local variables used by Rmail."
 The buffer is expected to be narrowed to just the header of the message."
   (save-excursion
     (goto-char (point-min))
-    (or (funcall rmail-get-coding-function)
+    (or (if rmail-get-coding-function
+           (funcall rmail-get-coding-function))
        (if (re-search-forward rmail-mime-charset-pattern nil t)
            (coding-system-from-name (match-string 1))
          'undecided))))