From: Gnus developers Date: Fri, 19 Jul 2013 14:50:21 +0000 (+0000) Subject: Merge Changes made in Gnus master X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1759^2~5 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=47cc1156030b8aea5e422d5518132e12d8841465;p=emacs.git Merge Changes made in Gnus master 2013-07-19 Geoff Kuenning (tiny change) * gnus.texi (Customizing Articles): Document function predicates. 2013-07-19 Geoff Kuenning (tiny change) * gnus-art.el (gnus-treat-predicate): Allow functions as predicates (bug#13384). 2013-07-18 Lars Magne Ingebrigtsen * gnus-start.el (gnus-clean-old-newsrc): Remove the newsrc cleanups that were only relevant in a development version a long time ago. --- diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index 2fe1914f926..0400a7518dd 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog @@ -1,3 +1,7 @@ +2013-07-19 Geoff Kuenning (tiny change) + + * gnus.texi (Customizing Articles): Document function predicates. + 2013-07-08 Tassilo Horn * gnus.texi (lines): Correct description of diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi index e5ba2c19eec..be0425a679b 100644 --- a/doc/misc/gnus.texi +++ b/doc/misc/gnus.texi @@ -11858,6 +11858,11 @@ predicate. The following predicates are recognized: @code{or}, (typep "text/x-vcard")) @end lisp +@item +A function: the function is called with no arguments and should return +@code{nil} or non-@code{nil}. The current article is available in the +buffer named by @code{gnus-article-buffer}. + @end enumerate You may have noticed that the word @dfn{part} is used here. This refers diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index c68013f6da3..4b2892ae4b0 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,13 @@ +2013-07-19 Geoff Kuenning (tiny change) + + * gnus-art.el (gnus-treat-predicate): Allow functions as predicates + (bug#13384). + +2013-07-18 Lars Magne Ingebrigtsen + + * gnus-start.el (gnus-clean-old-newsrc): Remove the newsrc cleanups + that were only relevant in a development version a long time ago. + 2013-07-18 Katsumi Yamaoka * gnus-art.el (gnus-shr-put-image): Make it work as well for shr.el's diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 304ac3da88c..31a108a3c98 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el @@ -8419,6 +8419,8 @@ For example: (not (gnus-treat-predicate (car val)))) ((eq pred 'typep) (equal (car val) gnus-treat-type)) + ((functionp pred) + (funcall pred)) (t (error "%S is not a valid predicate" pred))))) ((eq val t) diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el index 94803800e0b..05cf290cac9 100644 --- a/lisp/gnus/gnus-start.el +++ b/lisp/gnus/gnus-start.el @@ -2305,24 +2305,8 @@ If FORCE is non-nil, the .newsrc file is read." (gnus-clean-old-newsrc)))) (defun gnus-clean-old-newsrc (&optional force) - (when gnus-newsrc-file-version - ;; Remove totally bogus `unexists' entries. The name is - ;; `unexist'. - (dolist (info (cdr gnus-newsrc-alist)) - (let ((exist (assoc 'unexists (gnus-info-marks info)))) - (when exist - (gnus-info-set-marks - info (delete exist (gnus-info-marks info)))))) - (when (or force - (not (string= gnus-newsrc-file-version gnus-version))) - (message (concat "Removing unexist marks because newsrc " - "version does not match Gnus version.")) - ;; Remove old `exist' marks from old nnimap groups. - (dolist (info (cdr gnus-newsrc-alist)) - (let ((exist (assoc 'unexist (gnus-info-marks info)))) - (when exist - (gnus-info-set-marks - info (delete exist (gnus-info-marks info))))))))) + ;; Currently no cleanups. + ) (defun gnus-convert-old-newsrc () "Convert old newsrc formats into the current format, if needed."