Commit 368851a5 authored by Juanma Barranquero's avatar Juanma Barranquero
Browse files

(ibuffer-auto-update-changed): Use `dolist' rather than `mapcar';

return value is not used.
parent 700fb4ba
2007-10-23 Juanma Barranquero <lekktu@gmail.com>
* ibuf-ext.el (ibuffer-auto-update-changed): Use `dolist' rather
than `mapcar'; return value is not used.
2007-10-23 Dan Nicolaescu <dann@ics.uci.edu>
* progmodes/gud.el (gdb-source-window, gud-tooltip-mode)
......
......@@ -224,13 +224,12 @@ Currently, this only applies to `ibuffer-saved-filters' and
(defun ibuffer-auto-update-changed ()
(when (frame-or-buffer-changed-p 'ibuffer-auto-buffers-changed)
(mapcar #'(lambda (buf)
(ignore-errors
(with-current-buffer buf
(when (and ibuffer-auto-mode
(eq major-mode 'ibuffer-mode))
(ibuffer-update nil t)))))
(buffer-list))))
(dolist (buf (buffer-list))
(ignore-errors
(with-current-buffer buf
(when (and ibuffer-auto-mode
(eq major-mode 'ibuffer-mode))
(ibuffer-update nil t)))))))
;;;###autoload
(defun ibuffer-auto-mode (&optional arg)
......@@ -243,7 +242,7 @@ With numeric ARG, enable auto-update if and only if ARG is positive."
(if arg
(plusp arg)
(not ibuffer-auto-mode)))
(frame-or-buffer-changed-p 'ibuffer-auto-buffers-changed)
(frame-or-buffer-changed-p 'ibuffer-auto-buffers-changed) ; Initialize state vector
(add-hook 'post-command-hook 'ibuffer-auto-update-changed)
(ibuffer-update-mode-name))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment