aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Liu2012-02-16 22:33:58 +0800
committerLeo Liu2012-02-16 22:33:58 +0800
commit74db95ca362801386ca2ecd4cc9fc0d30a6d6b8f (patch)
treeeb770f6350977318c318a547e62b4d239e84cc46
parentd1354af0f367540d23b83d58e002b41302ad295e (diff)
downloademacs-74db95ca362801386ca2ecd4cc9fc0d30a6d6b8f.tar.gz
emacs-74db95ca362801386ca2ecd4cc9fc0d30a6d6b8f.zip
Use add-to-list instead of push in gnus-1
to avoid duplicate entries.
-rw-r--r--lisp/gnus/ChangeLog4
-rw-r--r--lisp/gnus/gnus-start.el4
2 files changed, 6 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 9ac21e5a33e..61f6ff9a3d3 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,7 @@
12012-02-16 Leo Liu <sdl.web@gmail.com>
2
3 * gnus-start.el (gnus-1): Avoid duplicate entries.
4
12012-02-15 Lars Ingebrigtsen <larsi@gnus.org> 52012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
2 6
3 * shr.el (shr-remove-trailing-whitespace): Really delete the padding on 7 * shr.el (shr-remove-trailing-whitespace): Really delete the padding on
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el
index 9b1d5681e6c..bb7dd76d590 100644
--- a/lisp/gnus/gnus-start.el
+++ b/lisp/gnus/gnus-start.el
@@ -763,8 +763,8 @@ prompt the user for the name of an NNTP server to use."
763 ;; Add "native" to gnus-predefined-server-alist just to have a 763 ;; Add "native" to gnus-predefined-server-alist just to have a
764 ;; name for the native select method. 764 ;; name for the native select method.
765 (when gnus-select-method 765 (when gnus-select-method
766 (push (cons "native" gnus-select-method) 766 (add-to-list 'gnus-predefined-server-alist
767 gnus-predefined-server-alist)) 767 (cons "native" gnus-select-method)))
768 768
769 (if gnus-agent 769 (if gnus-agent
770 (gnus-agentize)) 770 (gnus-agentize))