Function: next-error-follow-minor-mode
next-error-follow-minor-mode is an interactive and byte-compiled
function defined in simple.el.gz.
Signature
(next-error-follow-minor-mode &optional ARG)
Documentation
Minor mode for compilation, occur and diff modes.
This is a minor mode. If called interactively, toggle the
Next-Error-Follow minor 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 next-error-follow-minor-mode(var)/next-error-follow-minor-mode(fun).
The mode's hook is called both when the mode is enabled and when it is disabled.
When turned on, cursor motion in the compilation, grep, occur or diff buffer causes automatic display of the corresponding source code location.
Probably introduced at or before Emacs version 22.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/simple.el.gz
(define-minor-mode next-error-follow-minor-mode
"Minor mode for compilation, occur and diff modes.
When turned on, cursor motion in the compilation, grep, occur or diff
buffer causes automatic display of the corresponding source code location."
:group 'next-error :init-value nil :lighter " Fol"
(if (not next-error-follow-minor-mode)
(remove-hook 'post-command-hook 'next-error-follow-mode-post-command-hook t)
(add-hook 'post-command-hook 'next-error-follow-mode-post-command-hook nil t)
(make-local-variable 'next-error-follow-last-line)))