Function: proced-toggle-auto-update
proced-toggle-auto-update is an interactive and byte-compiled function
defined in proced.el.gz.
Signature
(proced-toggle-auto-update ARG)
Documentation
Change whether this Proced buffer is updated automatically.
With prefix ARG, update this buffer automatically if ARG is positive,
update the buffer only when the buffer is displayed in a window if ARG is 0,
otherwise do not update. Sets the variable proced-auto-update-flag by
cycling between nil, visible and t. The time interval for updates is
specified via proced-auto-update-interval.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/proced.el.gz
(defun proced-toggle-auto-update (arg)
"Change whether this Proced buffer is updated automatically.
With prefix ARG, update this buffer automatically if ARG is positive,
update the buffer only when the buffer is displayed in a window if ARG is 0,
otherwise do not update. Sets the variable `proced-auto-update-flag' by
cycling between nil, `visible' and t. The time interval for updates is
specified via `proced-auto-update-interval'."
(interactive (list (or current-prefix-arg 'toggle)) proced-mode)
(setq proced-auto-update-flag
(cond ((eq arg 'toggle)
(cond ((not proced-auto-update-flag) 'visible)
((eq proced-auto-update-flag 'visible) t)
(t nil)))
(arg
(setq arg (prefix-numeric-value arg))
(message "%s" arg)
(cond ((> arg 0) t)
((eq arg 0) 'visible)
(t nil)))
(t (not proced-auto-update-flag))))
(message "Proced auto update %s"
(cond ((eq proced-auto-update-flag 'visible) "enabled (only when buffer is visible)")
(proced-auto-update-flag "enabled (unconditionally)")
(t "disabled"))))