Variable: next-error-find-buffer-function

next-error-find-buffer-function is a customizable variable defined in simple.el.gz.

Value

ignore

Documentation

Function called to find a next-error capable buffer.

This function takes the same three arguments as the function next-error-find-buffer, and should return the buffer to be used by the subsequent invocation of the command next-error and previous-error. If the function returns nil, next-error-find-buffer will try to use the buffer it used previously, and failing that all other buffers.

This variable was added, or its default value changed, in Emacs 28.1.

Probably introduced at or before Emacs version 27.1.

Source Code

;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defcustom next-error-find-buffer-function #'ignore
  "Function called to find a `next-error' capable buffer.
This function takes the same three arguments as the function
`next-error-find-buffer', and should return the buffer to be
used by the subsequent invocation of the command `next-error'
and `previous-error'.
If the function returns nil, `next-error-find-buffer' will
try to use the buffer it used previously, and failing that
all other buffers."
  :type '(choice (const :tag "No default" ignore)
                 (const :tag "Single next-error capable buffer on selected frame"
                        next-error-buffer-on-selected-frame)
                 (const :tag "Current buffer if next-error capable and outside navigation"
                        next-error-buffer-unnavigated-current)
                 (function :tag "Other function"))
  :group 'next-error
  :version "28.1")