gnus-start.el (gnus-1): Avoid duplicate entries
authorLeo Liu <sdl.web@gmail.com>
Thu, 16 Feb 2012 22:12:49 +0000 (22:12 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 16 Feb 2012 22:12:49 +0000 (22:12 +0000)
lisp/ChangeLog
lisp/gnus-start.el

index ea25f26..9e565fe 100644 (file)
@@ -1,3 +1,7 @@
+2012-02-16  Leo Liu  <sdl.web@gmail.com>
+
+       * gnus-start.el (gnus-1): Avoid duplicate entries.
+
 2012-02-15  Lars Ingebrigtsen  <larsi@gnus.org>
 
        * shr.el (shr-remove-trailing-whitespace): Really delete the padding on
index 801f772..ad2d713 100644 (file)
@@ -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))