]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-toggle-header): Don't reset
authorChong Yidong <cyd@stupidchicken.com>
Wed, 28 Jan 2009 15:54:46 +0000 (15:54 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Wed, 28 Jan 2009 15:54:46 +0000 (15:54 +0000)
rmail-header-style permanently (bug#2016).

lisp/mail/rmail.el

index efd3044b653b678db6d19f114fee482e772f6e96..e29ac965947798a52ed81c255b0dd466331e362c 100644 (file)
@@ -2368,12 +2368,12 @@ the message.  Point is at the beginning of the message."
 With argument ARG, show the message header pruned if ARG is greater than zero;
 otherwise, show it in full."
   (interactive "P")
-  (setq rmail-header-style
-       (cond
-        ((and (numberp arg) (> arg 0)) 'normal)
-        ((eq rmail-header-style 'full) 'normal)
-        (t 'full)))
-  (rmail-show-message-maybe))
+  (let ((rmail-header-style
+        (cond
+         ((and (numberp arg) (> arg 0)) 'normal)
+         ((eq rmail-header-style 'full) 'normal)
+         (t 'full))))
+    (rmail-show-message-maybe)))
 
 (defun rmail-beginning-of-message ()
   "Show current message starting from the beginning."