Function: ibuffer-auto-mode
ibuffer-auto-mode is an autoloaded, interactive and byte-compiled
function defined in ibuf-ext.el.gz.
Signature
(ibuffer-auto-mode &optional ARG)
Documentation
Toggle use of Ibuffer's auto-update facility (Ibuffer Auto mode).
This is a minor mode. If called interactively, toggle the Ibuffer-Auto
mode mode. If the prefix argument is positive, enable the mode, and if
it is zero or negative, disable the mode.
If called from Lisp, toggle the mode if ARG is toggle. Enable the
mode if ARG is nil, omitted, or is a positive number. Disable the mode
if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate the variable ibuffer-auto-mode(var)/ibuffer-auto-mode(fun).
The mode's hook is called both when the mode is enabled and when it is disabled.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/ibuf-ext.el.gz
;;;###autoload
(define-minor-mode ibuffer-auto-mode
"Toggle use of Ibuffer's auto-update facility (Ibuffer Auto mode)."
:lighter nil
(unless (derived-mode-p 'ibuffer-mode)
(error "This buffer is not in Ibuffer mode"))
(cond (ibuffer-auto-mode
(frame-or-buffer-changed-p 'ibuffer-auto-buffers-changed) ; Initialize state vector
(add-hook 'post-command-hook #'ibuffer-auto-update-changed))
(t
(remove-hook 'post-command-hook #'ibuffer-auto-update-changed))))