aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGnus developers2010-09-26 12:47:09 +0000
committerKatsumi Yamaoka2010-09-26 12:47:09 +0000
commit2d04f304a2ab6b69d10feb88b398d62d3ab60474 (patch)
treed383c2db5fc1893967649934b20a326649df7338
parent8af55556e6cc093641dde5205aa5e295039b809f (diff)
downloademacs-2d04f304a2ab6b69d10feb88b398d62d3ab60474.tar.gz
emacs-2d04f304a2ab6b69d10feb88b398d62d3ab60474.zip
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.
-rw-r--r--doc/misc/gnus-news.texi6
-rw-r--r--lisp/gnus/auth-source.el8
-rw-r--r--lisp/gnus/gnus-sum.el6
-rw-r--r--lisp/gnus/gnus.el4
4 files changed, 17 insertions, 7 deletions
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.
103@c ************************ 103@c ************************
104 104
105@itemize @bullet 105@itemize @bullet
106
107@item
108Symbols like @code{gcc-self} now has the same presedence rules in
109@code{gnus-parameters} as other ``real'' variables: The last match
110wins instead of the first match.
111
106@item 112@item
107Old intermediate incoming mail files (@file{Incoming*}) are deleted 113Old intermediate incoming mail files (@file{Incoming*}) are deleted
108after a couple of days, not immediately. @xref{Mail Source 114after 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\"."
430 (and found (return found))) 430 (and found (return found)))
431 431
432 ;; We haven't found something, so we will create it interactively. 432 ;; We haven't found something, so we will create it interactively.
433 (when (and (not found) choices create-missing) 433 (when (and (not found) create-missing)
434 (setq found (apply 'auth-source-create mode (car choices) search))) 434 (setq found (apply 'auth-source-create
435 mode (if choices
436 (car choices)
437 (car auth-sources))
438 search)))
435 439
436 ;; Cache the result. 440 ;; Cache the result.
437 (when found 441 (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."
451 (integer :tag "height") 451 (integer :tag "height")
452 (sexp :menu-tag "both" t))) 452 (sexp :menu-tag "both" t)))
453 453
454(defvar gnus-auto-center-group t 454(defcustom gnus-auto-center-group t
455 "*If non-nil, always center the group buffer.") 455 "If non-nil, always center the group buffer."
456 :group 'gnus-summary-maneuvering
457 :type 'boolean)
456 458
457(defcustom gnus-show-all-headers nil 459(defcustom gnus-show-all-headers nil
458 "*If non-nil, don't hide any headers." 460 "*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."
3862 ;; Expand if necessary. 3862 ;; Expand if necessary.
3863 (if (and (stringp result) (string-match "\\\\[0-9&]" result)) 3863 (if (and (stringp result) (string-match "\\\\[0-9&]" result))
3864 (setq result (gnus-expand-group-parameter (car head) 3864 (setq result (gnus-expand-group-parameter (car head)
3865 result group))) 3865 result group))))))
3866 ;; Exit the loop early.
3867 (setq tail nil))))
3868 ;; Done. 3866 ;; Done.
3869 result)))) 3867 result))))
3870 3868