[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#43496: 28.0.50; [PATCH] Fix edge case in gnus-summary-catchup-from-h
From: |
Alex Bochannek |
Subject: |
bug#43496: 28.0.50; [PATCH] Fix edge case in gnus-summary-catchup-from-here |
Date: |
Fri, 18 Sep 2020 14:35:31 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) |
The gnus-summary-catchup-from-here function also marks the current
article, which it fails to do if that article is the last one in the
summary buffer.
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 2f0ea0c58f..8e27a94e5b 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -11537,7 +11537,7 @@ gnus-summary-catchup-from-here
(gnus-save-hidden-threads
(let ((beg (point)))
;; We check that there are unread articles.
- (when (or all (gnus-summary-find-next))
+ (when (or all (gnus-summary-last-article-p) (gnus-summary-find-next))
(gnus-summary-catchup all t beg nil t)))))
(gnus-summary-position-point))
--
Alex.
- bug#43496: 28.0.50; [PATCH] Fix edge case in gnus-summary-catchup-from-here,
Alex Bochannek <=