projects
/
elisp
/
riece.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Synch up with riece-0.0.4.
[elisp/riece.git]
/
lisp
/
riece-unread.el
diff --git
a/lisp/riece-unread.el
b/lisp/riece-unread.el
index
2ca880e
..
d03024d
100644
(file)
--- a/
lisp/riece-unread.el
+++ b/
lisp/riece-unread.el
@@
-37,9
+37,7
@@
(defun riece-unread-display-message-function (message)
(unless (or (riece-message-own-p message)
(defun riece-unread-display-message-function (message)
(unless (or (riece-message-own-p message)
- (and (equal (riece-message-target message) riece-current-channel)
- (eq (window-buffer (selected-window))
- (get-buffer riece-command-buffer))))
+ (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
(setq riece-unread-channels
(delete (riece-message-target message) riece-unread-channels))
(add-to-list 'riece-unread-channels
@@
-85,8
+83,8
@@
'riece-unread-display-message-function)
(add-hook 'riece-channel-switch-hook
'riece-unread-channel-switch-hook)
'riece-unread-display-message-function)
(add-hook 'riece-channel-switch-hook
'riece-unread-channel-switch-hook)
- (add-hook 'riece-update-buffers-hook
- 'riece-unread-update-channel-list-buffer)
+ (add-hook 'riece-update-buffer-functions
+ 'riece-unread-update-channel-list-buffer t)
(define-key riece-command-mode-map
"\C-c\C-u" 'riece-unread-switch-to-channel)
(define-key riece-dialogue-mode-map
(define-key riece-command-mode-map
"\C-c\C-u" 'riece-unread-switch-to-channel)
(define-key riece-dialogue-mode-map