aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2010-10-07 20:22:07 +0200
committerStefan Monnier2010-10-07 20:22:07 +0200
commit3a3cbf0ad3973f3cf1f67cabdc01c96a8f34f586 (patch)
tree3baec572fa1a9d7dd5f4fa7d5ec2ebf7ddad9834
parent849b02b469832795d0c3a55f73fb75a8187c6a8c (diff)
downloademacs-3a3cbf0ad3973f3cf1f67cabdc01c96a8f34f586.tar.gz
emacs-3a3cbf0ad3973f3cf1f67cabdc01c96a8f34f586.zip
* lisp/gnus/gnus-sum.el (gnus-number): Rename from `number'.
(gnus-article-marked-p, gnus-summary-limit-to-display-predicate) (gnus-summary-limit-children): Update uses correspondingly.
-rw-r--r--lisp/gnus/ChangeLog6
-rw-r--r--lisp/gnus/gnus-sum.el17
2 files changed, 15 insertions, 8 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 2e07fa8798e..043375136b9 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,9 @@
12010-10-07 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * gnus-sum.el (gnus-number): Rename from `number'.
4 (gnus-article-marked-p, gnus-summary-limit-to-display-predicate)
5 (gnus-summary-limit-children): Update uses correspondingly.
6
12010-10-07 Katsumi Yamaoka <yamaoka@jpl.org> 72010-10-07 Katsumi Yamaoka <yamaoka@jpl.org>
2 8
3 * gnus-gravatar.el (gnus-gravatar-too-ugly): New user option. 9 * gnus-gravatar.el (gnus-gravatar-too-ugly): New user option.
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index dc6882ac086..caad85815e2 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -5682,17 +5682,17 @@ If SELECT-ARTICLES, only select those articles from GROUP."
5682 (unseen . unseen)) 5682 (unseen . unseen))
5683 gnus-article-mark-lists)) 5683 gnus-article-mark-lists))
5684 (push (cons (cdr elem) 5684 (push (cons (cdr elem)
5685 (gnus-byte-compile 5685 (gnus-byte-compile ;Why bother?
5686 `(lambda () (gnus-article-marked-p ',(cdr elem))))) 5686 `(lambda () (gnus-article-marked-p ',(cdr elem)))))
5687 gnus-summary-display-cache))) 5687 gnus-summary-display-cache)))
5688 (let ((gnus-category-predicate-alist gnus-summary-display-cache) 5688 (let ((gnus-category-predicate-alist gnus-summary-display-cache)
5689 (gnus-category-predicate-cache gnus-summary-display-cache)) 5689 (gnus-category-predicate-cache gnus-summary-display-cache))
5690 (gnus-get-predicate display))) 5690 (gnus-get-predicate display)))
5691 5691
5692;; Uses the dynamically bound `number' variable. 5692;; Uses the dynamically bound `gnus-number' variable.
5693(defvar number) 5693(defvar gnus-number)
5694(defun gnus-article-marked-p (type &optional article) 5694(defun gnus-article-marked-p (type &optional article)
5695 (let ((article (or article number))) 5695 (let ((article (or article gnus-number)))
5696 (cond 5696 (cond
5697 ((eq type 'tick) 5697 ((eq type 'tick)
5698 (memq article gnus-newsgroup-marked)) 5698 (memq article gnus-newsgroup-marked))
@@ -8283,9 +8283,9 @@ articles that are younger than AGE days."
8283 (unless gnus-newsgroup-display 8283 (unless gnus-newsgroup-display
8284 (error "There is no `display' group parameter")) 8284 (error "There is no `display' group parameter"))
8285 (let (articles) 8285 (let (articles)
8286 (dolist (number gnus-newsgroup-articles) 8286 (dolist (gnus-number gnus-newsgroup-articles)
8287 (when (funcall gnus-newsgroup-display) 8287 (when (funcall gnus-newsgroup-display)
8288 (push number articles))) 8288 (push gnus-number articles)))
8289 (gnus-summary-limit articles)) 8289 (gnus-summary-limit articles))
8290 (gnus-summary-position-point)) 8290 (gnus-summary-position-point))
8291 8291
@@ -8686,7 +8686,7 @@ fetch-old-headers verbiage, and so on."
8686 (apply '+ (mapcar 'gnus-summary-limit-children 8686 (apply '+ (mapcar 'gnus-summary-limit-children
8687 (cdr thread))) 8687 (cdr thread)))
8688 0)) 8688 0))
8689 (number (mail-header-number (car thread))) 8689 (number (mail-header-number (car thread)))
8690 score) 8690 score)
8691 (if (and 8691 (if (and
8692 (not (memq number gnus-newsgroup-marked)) 8692 (not (memq number gnus-newsgroup-marked))
@@ -8732,7 +8732,8 @@ fetch-old-headers verbiage, and so on."
8732 t) 8732 t)
8733 ;; Do the `display' group parameter. 8733 ;; Do the `display' group parameter.
8734 (and gnus-newsgroup-display 8734 (and gnus-newsgroup-display
8735 (not (funcall gnus-newsgroup-display))))) 8735 (let ((gnus-number number))
8736 (not (funcall gnus-newsgroup-display))))))
8736 ;; Nope, invisible article. 8737 ;; Nope, invisible article.
8737 0 8738 0
8738 ;; Ok, this article is to be visible, so we add it to the limit 8739 ;; Ok, this article is to be visible, so we add it to the limit