aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2014-01-11 08:29:10 +0900
committerKenichi Handa2014-01-11 08:29:10 +0900
commit3923e7bde942018135c7362c75327ffddcbd81fc (patch)
treea5301dc566ab0d677e7211c2ac76309c9d85db82
parent684d44ef81d88387fd300588cd01ee5b9efdd617 (diff)
downloademacs-3923e7bde942018135c7362c75327ffddcbd81fc.tar.gz
emacs-3923e7bde942018135c7362c75327ffddcbd81fc.zip
mail/rmail.el (rmail-get-coding-system): Check rmail-get-coding-function before "funcall"ing it.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/mail/rmail.el3
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 481c3cbc04a..401dc6a1c7e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12014-01-10 K. Handa <handa@gnu.org>
2
3 * mail/rmail.el (rmail-get-coding-system): Check
4 rmail-get-coding-function before "funcall"ing it.
5
12014-01-09 Stefan Monnier <monnier@iro.umontreal.ca> 62014-01-09 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * simple.el (deactivate-mark, activate-mark): Force-mode-line-update 8 * simple.el (deactivate-mark, activate-mark): Force-mode-line-update
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 7877287f5e6..cfde976ea0b 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -1040,7 +1040,8 @@ This function also reinitializes local variables used by Rmail."
1040The buffer is expected to be narrowed to just the header of the message." 1040The buffer is expected to be narrowed to just the header of the message."
1041 (save-excursion 1041 (save-excursion
1042 (goto-char (point-min)) 1042 (goto-char (point-min))
1043 (or (funcall rmail-get-coding-function) 1043 (or (if rmail-get-coding-function
1044 (funcall rmail-get-coding-function))
1044 (if (re-search-forward rmail-mime-charset-pattern nil t) 1045 (if (re-search-forward rmail-mime-charset-pattern nil t)
1045 (coding-system-from-name (match-string 1)) 1046 (coding-system-from-name (match-string 1))
1046 'undecided)))) 1047 'undecided))))