Changes committed gnus/lisp (gnus-sum.el)

"Katsumi Yamaoka" <[email protected]> Wed, 24 Dec 2008 03:30:35 +0100
Newsgroups gmane.emacs.gnus.commits
Message-ID <[email protected]>
Modified: gnus-sum.el

(gnus-summary-set-local-parameters): Don't bind parameters that haven't existed
 as variables as buffer-local variables.


Index: gnus-sum.el
diff -u gnus/lisp/gnus-sum.el:7.234 gnus/lisp/gnus-sum.el:7.235
--- gnus-sum.el:7.234	Thu Sep 11 14:48:08 2008
+++ gnus-sum.el	Wed Dec 24 03:30:35 2008
@@ -3831,6 +3831,13 @@
       (and (consp elem)			; Has to be a cons.
 	   (consp (cdr elem))		; The cdr has to be a list.
 	   (symbolp (car elem))		; Has to be a symbol in there.
+
+	   ;; Variables like `gnus-show-threads' that are globally bound,
+	   ;; if used as group parameters, need to get to be buffer-local,
+	   ;; whereas just parameters like `gcc-self', `timestamp', etc.
+	   ;; should not be bound as variables.
+	   (boundp (car elem))		; Has to be already bound
+
 	   (not (memq (car elem) vars))
 	   (ignore-errors		; So we set it.
 	     (push (car elem) vars)