Function: rcirc-omit-mode
rcirc-omit-mode is an interactive and byte-compiled function defined
in rcirc.el.gz.
Signature
(rcirc-omit-mode &optional ARG)
Documentation
Toggle the hiding of "uninteresting" lines.
Uninteresting lines are those whose responses are listed in
rcirc-omit-responses.
This is a minor mode. If called interactively, toggle the Rcirc-Omit
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 rcirc-omit-mode(var)/rcirc-omit-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/net/rcirc.el.gz
(define-minor-mode rcirc-omit-mode
"Toggle the hiding of \"uninteresting\" lines.
Uninteresting lines are those whose responses are listed in
`rcirc-omit-responses'."
:lighter " Omit"
(if rcirc-omit-mode
(add-to-invisibility-spec '(rcirc-omit . nil))
(remove-from-invisibility-spec '(rcirc-omit . nil)))
(dolist (window (get-buffer-window-list (current-buffer)))
(with-selected-window window
(recenter (when (> (point) rcirc-prompt-start-marker) -1)))))