# HG changeset patch # User Glenn Morris # Date 1258771014 0 # Node ID 3f65383da746db0ccf9cb6717d9fdaf2650b28b0 # Parent cb523092ddfde92c1a2083b9a225af48add72d10 (rmail-mime): Decode in fundamental-mode. (Bug#4993) diff -r cb523092ddfd -r 3f65383da746 lisp/ChangeLog --- a/lisp/ChangeLog Sat Nov 21 02:33:45 2009 +0000 +++ b/lisp/ChangeLog Sat Nov 21 02:36:54 2009 +0000 @@ -1,3 +1,7 @@ +2009-11-21 Glenn Morris + + * mail/rmailmm.el (rmail-mime): Decode in fundamental-mode. (Bug#4993) + 2009-11-20 Ken Brown (tiny change) * net/browse-url.el (browse-url-default-windows-browser): Use diff -r cb523092ddfd -r 3f65383da746 lisp/mail/rmailmm.el --- a/lisp/mail/rmailmm.el Sat Nov 21 02:33:45 2009 +0000 +++ b/lisp/mail/rmailmm.el Sat Nov 21 02:36:54 2009 +0000 @@ -451,10 +451,14 @@ (set-buffer buf) (setq buffer-undo-list t) (let ((inhibit-read-only t)) + ;; Decoding the message in fundamental mode for speed, only + ;; switching to rmail-mime-mode at the end for display. Eg + ;; quoted-printable-decode-region gets very slow otherwise (Bug#4993). + (fundamental-mode) (erase-buffer) (insert data) + (rmail-mime-show t) (rmail-mime-mode) - (rmail-mime-show t) (set-buffer-modified-p nil)) (view-buffer buf)))