Function: next-error-select-buffer

next-error-select-buffer is an interactive and byte-compiled function defined in simple.el.gz.

Signature

(next-error-select-buffer BUFFER)

Documentation

Select a next-error capable BUFFER and set it as the last used.

This means that the selected buffer becomes the source of locations for the subsequent invocation of next-error or previous-error. Interactively, this command allows selection only among buffers where next-error-function is bound to an appropriate function.

View in manual

Probably introduced at or before Emacs version 27.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun next-error-select-buffer (buffer)
  "Select a `next-error' capable BUFFER and set it as the last used.
This means that the selected buffer becomes the source of locations
for the subsequent invocation of `next-error' or `previous-error'.
Interactively, this command allows selection only among buffers
where `next-error-function' is bound to an appropriate function."
  (interactive
   (list (get-buffer
          (read-buffer "Select next-error buffer: " nil nil
                       (lambda (b) (next-error-buffer-p (cdr b)))))))
  (setq next-error-last-buffer buffer))