From: Gnus developers Date: Sun, 26 Sep 2010 12:47:09 +0000 (+0000) Subject: gnus-sum.el (gnus-auto-center-group): Transform into a defcustom. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~47^2~42^2~13 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2d04f304a2ab6b69d10feb88b398d62d3ab60474;p=emacs.git gnus-sum.el (gnus-auto-center-group): Transform into a defcustom. 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. --- diff --git a/doc/misc/gnus-news.texi b/doc/misc/gnus-news.texi index bf7a685003f..7d654820440 100644 --- a/doc/misc/gnus-news.texi +++ b/doc/misc/gnus-news.texi @@ -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 diff --git a/lisp/gnus/auth-source.el b/lisp/gnus/auth-source.el index a0be0ca8ba4..c0464e2c53f 100644 --- a/lisp/gnus/auth-source.el +++ b/lisp/gnus/auth-source.el @@ -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 diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 195c7249778..2f8abe61ee9 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el @@ -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." diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el index 0c01d599cfc..ee504597535 100644 --- a/lisp/gnus/gnus.el +++ b/lisp/gnus/gnus.el @@ -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))))