summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Lundin <mdl@imapmail.org>2012-04-22 11:23:19 -0500
committerBastien Guerry <bzg@altern.org>2012-04-23 09:18:52 +0200
commite5101717fab4a1eb12afbdad5ffbfa659134bc63 (patch)
treef09dae5b2f43cc490bbfc0cfdffa467a92811c84
parente9dec29bb12fbcfc3674395bb34b104b55a29d0e (diff)
downloadorg-mode-e5101717fab4a1eb12afbdad5ffbfa659134bc63.tar.gz
Following gnus links: Don't mark unrelated articles read
* lisp/org-gnus.el: (org-gnus-follow-link): Fix argument to gnus-group-read-group so that following a link does not result in unread article being selected. The NO-ARTICLE argument to gnus-group-read-group should be t. Otherwise org-gnus-follow-link selects the most unread article in a group before selecting the linked article. This results in unread articles being unread (which can cause one to miss important mail).
-rw-r--r--lisp/org-gnus.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-gnus.el b/lisp/org-gnus.el
index 5b855c2..50d91be 100644
--- a/lisp/org-gnus.el
+++ b/lisp/org-gnus.el
@@ -272,7 +272,7 @@ If `org-store-link' was called with a prefix arg the meaning of
;; stop on integer overflows
(> articles 0))
(setq group-opened (gnus-group-read-group
- articles nil group)
+ articles t group)
articles (if (< articles 16)
(1+ articles)
(* articles 2))))