]> git.eshelyaron.com Git - emacs.git/commitdiff
gnus-sum.el (gnus-auto-center-group): Transform into a defcustom.
authorGnus developers <ding@gnus.org>
Sun, 26 Sep 2010 12:47:09 +0000 (12:47 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Sun, 26 Sep 2010 12:47:09 +0000 (12:47 +0000)
gnus.el (gnus-group-fast-parameter): Return the last matching parameter instead of the first matching parameter.
auth-source.el (auth-source-user-or-password): Query for password, although there are no existing auth sources.
auth-source.el (auth-source-user-or-password): Use the existing auth sources, if any, for creation.

doc/misc/gnus-news.texi
lisp/gnus/auth-source.el
lisp/gnus/gnus-sum.el
lisp/gnus/gnus.el

index bf7a685003f8bba053775372d5ba16abc6213393..7d654820440c53dc4a394e73b3a64acb41643a22 100644 (file)
@@ -103,6 +103,12 @@ EasyPG is included in Emacs 23 and available separately as well.
 @c ************************
 
 @itemize @bullet
+
+@item
+Symbols like @code{gcc-self} now has the same presedence rules in
+@code{gnus-parameters} as other ``real'' variables: The last match
+wins instead of the first match.
+
 @item
 Old intermediate incoming mail files (@file{Incoming*}) are deleted
 after a couple of days, not immediately.  @xref{Mail Source
index a0be0ca8ba4251a386c87c36b8121448bcd5eb9d..c0464e2c53fb608f64237b5191560148e712732a 100644 (file)
@@ -430,8 +430,12 @@ MODE can be \"login\" or \"password\"."
          (and found (return found)))
 
        ;; We haven't found something, so we will create it interactively.
-       (when (and (not found) choices create-missing)
-         (setq found (apply 'auth-source-create mode (car choices) search)))
+       (when (and (not found) create-missing)
+         (setq found (apply 'auth-source-create
+                            mode (if choices
+                                     (car choices)
+                                   (car auth-sources))
+                            search)))
 
        ;; Cache the result.
        (when found
index 195c7249778fb9428740eaf124cfb5a43017ab6c..2f8abe61ee97b21351b3f2d5aaa86626362d6522 100644 (file)
@@ -451,8 +451,10 @@ and non-`vertical', do both horizontal and vertical recentering."
                 (integer :tag "height")
                 (sexp :menu-tag "both" t)))
 
-(defvar gnus-auto-center-group t
-  "*If non-nil, always center the group buffer.")
+(defcustom gnus-auto-center-group t
+  "If non-nil, always center the group buffer."
+  :group 'gnus-summary-maneuvering
+  :type 'boolean)
 
 (defcustom gnus-show-all-headers nil
   "*If non-nil, don't hide any headers."
index 0c01d599cfcd2e36614e2ca073bd3aa29ffd0012..ee50459753573b34cee5754ba3f004a034d76767 100644 (file)
@@ -3862,9 +3862,7 @@ The function `gnus-group-find-parameter' will do that for you."
              ;; Expand if necessary.
              (if (and (stringp result) (string-match "\\\\[0-9&]" result))
                  (setq result (gnus-expand-group-parameter (car head)
-                                                           result group)))
-             ;; Exit the loop early.
-             (setq tail nil))))
+                                                           result group))))))
        ;; Done.
        result))))