|
From: Alex S. <al...@em...> - 2004-09-17 00:55:36
|
Does anybody know why the *tip* buffer sometimes appears in
erc-modified-channels-alist? I think it only happens if you enable
erc-track-when-inactive-mode.
The following patch will remove all buffers that are not in erc-mode
from the alist. I'd still like to know why it got added in the first
place. :( I'm not sure what to do about this... I think we should
debug some more.
Alex.
diff -c "c:/Programme/Emacs/site-lisp/erc/erc-track.el.~1.65.~" "c:/Programme/Emacs/site-lisp/erc/erc-track.el"
*** c:/Programme/Emacs/site-lisp/erc/erc-track.el.~1.65.~ Sat Aug 14 22:09:35 2004
--- c:/Programme/Emacs/site-lisp/erc/erc-track.el Thu Sep 16 14:44:28 2004
***************
*** 471,477 ****
(let ((buffer (car elt)))
(when (or (not (bufferp buffer))
(not (buffer-live-p buffer))
! (erc-buffer-visible buffer))
(erc-modified-channels-remove-buffer buffer))))
erc-modified-channels-alist)
(erc-modified-channels-display)
--- 471,479 ----
(let ((buffer (car elt)))
(when (or (not (bufferp buffer))
(not (buffer-live-p buffer))
! (erc-buffer-visible buffer)
! (not (with-current-buffer buffer
! (eq major-mode 'erc-mode))))
(erc-modified-channels-remove-buffer buffer))))
erc-modified-channels-alist)
(erc-modified-channels-display)
Diff finished. Thu Sep 16 14:44:49 2004
|