From: ueno Date: Sun, 7 Sep 2003 00:57:15 +0000 (+0000) Subject: * riece-unread.el (riece-unread-after-display-message-function): X-Git-Tag: riece-0_1_2~9 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=c772957148c1160a818a6ab94d547394f6060af6;p=elisp%2Friece.git * riece-unread.el (riece-unread-after-display-message-function): Simplified. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 99c7648..65019f7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2003-09-07 Daiki Ueno + + * riece-unread.el (riece-unread-after-display-message-function): + Simplified. + 2003-09-02 Daiki Ueno * riece-commands.el (riece-command-join): Extract target diff --git a/lisp/riece-unread.el b/lisp/riece-unread.el index 0f83689..1056ee2 100644 --- a/lisp/riece-unread.el +++ b/lisp/riece-unread.el @@ -63,9 +63,8 @@ (unless (or (riece-message-own-p message) (equal (riece-message-target message) riece-current-channel)) (setq riece-unread-channels - (delete (riece-message-target message) riece-unread-channels)) - (add-to-list 'riece-unread-channels - (riece-message-target message)) + (cons (riece-message-target message) + (delete (riece-message-target message) riece-unread-channels))) (riece-unread-update-channel-list-buffer))) (defun riece-unread-after-switch-to-channel-function (last)