+2005-08-28 John Paul Wallington <jpw@gnu.org>
+
+ * ibuf-ext.el (ibuffer-auto-update-changed): Use
+ `frame-or-buffer-changed-p' to check whether we need to update.
+ (ibuffer-auto-mode): Don't advise `get-buffer-create' and
+ `kill-buffer'. Initialise `ibuffer-auto-buffers-changed'
+ as a `frame-or-buffer-changed-p' state vector instead.
+
2005-08-27 Romain Francoise <romain@orebokech.com>
* textmodes/makeinfo.el (makeinfo-compile): Use
(ibuffer-buf-matches-predicates buf ibuffer-always-show-predicates)))))
(defun ibuffer-auto-update-changed ()
- (when ibuffer-auto-buffers-changed
- (setq ibuffer-auto-buffers-changed nil)
+ (when (frame-or-buffer-changed-p 'ibuffer-auto-buffers-changed)
(mapcar #'(lambda (buf)
(ignore-errors
(with-current-buffer buf
(if arg
(plusp arg)
(not ibuffer-auto-mode)))
- (defadvice get-buffer-create (after ibuffer-notify-create activate)
- (setq ibuffer-auto-buffers-changed t))
- (defadvice kill-buffer (after ibuffer-notify-kill activate)
- (setq ibuffer-auto-buffers-changed t))
+ (frame-or-buffer-changed-p 'ibuffer-auto-buffers-changed)
(add-hook 'post-command-hook 'ibuffer-auto-update-changed)
(ibuffer-update-mode-name))