]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-show-message): Catch error in check-coding-system.
authorRichard M. Stallman <rms@gnu.org>
Fri, 10 May 2002 01:02:26 +0000 (01:02 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 10 May 2002 01:02:26 +0000 (01:02 +0000)
lisp/mail/rmail.el

index 81da56a6f82299fa66639ea2cb27f02073a37cda..e6dd92671e170ff993370f9823d90dafec629eac 100644 (file)
@@ -2391,8 +2391,12 @@ If summary buffer is currently displayed, update current message there also."
              (goto-char (point-min))
              (if (re-search-forward "^X-Coding-System: *\\(.*\\)$" nil t)
                  (let ((coding-system (intern (match-string 1))))
-                   (check-coding-system coding-system)
-                   (setq buffer-file-coding-system coding-system))
+                   (condition-case nil
+                       (progn
+                         (check-coding-system coding-system)
+                         (setq buffer-file-coding-system coding-system))
+                     (error 
+                      (setq buffer-file-coding-system nil))))
                (setq buffer-file-coding-system nil)))))
        ;; Clear the "unseen" attribute when we show a message.
        (rmail-set-attribute "unseen" nil)