Function: next-error-buffer-unnavigated-current

next-error-buffer-unnavigated-current is a byte-compiled function defined in simple.el.gz.

Signature

(next-error-buffer-unnavigated-current &optional AVOID-CURRENT EXTRA-TEST-INCLUSIVE EXTRA-TEST-EXCLUSIVE)

Documentation

Try the current buffer when outside navigation.

But return nil if we navigated to the current buffer by the means of next-error command. Otherwise, return it if it's next-error capable.

Source Code

;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun next-error-buffer-unnavigated-current (&optional avoid-current
                                                        extra-test-inclusive
                                                        extra-test-exclusive)
  "Try the current buffer when outside navigation.
But return nil if we navigated to the current buffer by the means
of `next-error' command.  Otherwise, return it if it's `next-error'
capable."
  ;; Check that next-error-buffer has no buffer-local value
  ;; (i.e. we never navigated to the current buffer from another),
  ;; and the current buffer is a `next-error' capable buffer.
  (if (and (not (local-variable-p 'next-error-buffer))
           (next-error-buffer-p (current-buffer) avoid-current
                                extra-test-inclusive extra-test-exclusive))
      (current-buffer)))