merge trunk
authorKenichi Handa <handa@gnu.org>
Sat, 11 Jan 2014 13:00:54 +0000 (22:00 +0900)
committerKenichi Handa <handa@gnu.org>
Sat, 11 Jan 2014 13:00:54 +0000 (22:00 +0900)
lisp/ChangeLog
lisp/mail/rmail.el

index f59908e..795dec2 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-10  Glenn Morris  <rgm@gnu.org>
 
        * emacs-lisp/authors.el (authors-fixed-entries):
index 7877287..cfde976 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))))