Make `C-- T k' work so tick messages
authorLars Magne Ingebrigtsen <larsi@stories.(none)>
Fri, 6 Jan 2012 19:28:39 +0000 (20:28 +0100)
committerLars Magne Ingebrigtsen <larsi@stories.(none)>
Fri, 6 Jan 2012 19:28:39 +0000 (20:28 +0100)
* gnus-sum.el (gnus-summary-mark-article-as-unread): Mark articles as
read, and then mark them as unread only when the unread mark is used.
This makes `C-- T k' actually work, even though it's confusing.

lisp/ChangeLog
lisp/gnus-sum.el

index b6e0a5a..4095cc9 100644 (file)
@@ -1,5 +1,9 @@
 2012-01-06  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * gnus-sum.el (gnus-summary-mark-article-as-unread): Mark articles as
+       read, and then mark them as unread only when the unread mark is used.
+       This makes `C-- T k' actually work, even though it's confusing.
+
        * gnus-win.el (gnus-all-windows-visible-p): Ensure that the buffer is
        alive before we try to find its window.
 
index 2c8c2ed..6ccf1a7 100644 (file)
@@ -10886,6 +10886,7 @@ If NO-EXPIRE, auto-expiry will be inhibited."
        (setq gnus-newsgroup-dormant (delq article gnus-newsgroup-dormant))
        (setq gnus-newsgroup-expirable (delq article gnus-newsgroup-expirable))
        (setq gnus-newsgroup-reads (delq article gnus-newsgroup-reads))
+       (setq gnus-newsgroup-unreads (delq article gnus-newsgroup-unreads))
        (cond ((= mark gnus-ticked-mark)
               (setq gnus-newsgroup-marked
                     (gnus-add-to-sorted-list gnus-newsgroup-marked