From: Leo Liu Date: Thu, 16 Feb 2012 14:33:58 +0000 (+0800) Subject: Use add-to-list instead of push in gnus-1 X-Git-Tag: emacs-pretest-24.0.94~133^2~6 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=74db95ca362801386ca2ecd4cc9fc0d30a6d6b8f;p=emacs.git Use add-to-list instead of push in gnus-1 to avoid duplicate entries. --- 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 @@ +2012-02-16 Leo Liu + + * gnus-start.el (gnus-1): Avoid duplicate entries. + 2012-02-15 Lars Ingebrigtsen * 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." ;; Add "native" to gnus-predefined-server-alist just to have a ;; name for the native select method. (when gnus-select-method - (push (cons "native" gnus-select-method) - gnus-predefined-server-alist)) + (add-to-list 'gnus-predefined-server-alist + (cons "native" gnus-select-method))) (if gnus-agent (gnus-agentize))