diff options
| author | Kenichi Handa | 2014-01-11 08:29:10 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2014-01-11 08:29:10 +0900 |
| commit | 3923e7bde942018135c7362c75327ffddcbd81fc (patch) | |
| tree | a5301dc566ab0d677e7211c2ac76309c9d85db82 | |
| parent | 684d44ef81d88387fd300588cd01ee5b9efdd617 (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 3 |
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 @@ | |||
| 1 | 2014-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 | |||
| 1 | 2014-01-09 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2014-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." | |||
| 1040 | The buffer is expected to be narrowed to just the header of the message." | 1040 | The 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)))) |