Function: next-error-buffer-on-selected-frame

next-error-buffer-on-selected-frame is a byte-compiled function defined in simple.el.gz.

Signature

(next-error-buffer-on-selected-frame &optional AVOID-CURRENT EXTRA-TEST-INCLUSIVE EXTRA-TEST-EXCLUSIVE)

Documentation

Return a single visible next-error buffer on the selected frame.

Source Code

;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun next-error-buffer-on-selected-frame (&optional _avoid-current
                                                      extra-test-inclusive
                                                      extra-test-exclusive)
  "Return a single visible `next-error' buffer on the selected frame."
  (let ((window-buffers
         (delete-dups
          (delq nil (mapcar (lambda (w)
                              (if (next-error-buffer-p
				   (window-buffer w)
                                   t
                                   extra-test-inclusive extra-test-exclusive)
                                  (window-buffer w)))
                            (window-list))))))
    (if (eq (length window-buffers) 1)
        (car window-buffers))))