Function: multi-isearch-next-file-buffer-from-list

multi-isearch-next-file-buffer-from-list is a byte-compiled function defined in misearch.el.gz.

Signature

(multi-isearch-next-file-buffer-from-list &optional BUFFER WRAP)

Documentation

Return the next buffer in the series of file buffers.

This function is used for multiple file buffers Isearch. A sequence of files is defined by the variable multi-isearch-file-list set in multi-isearch-files or multi-isearch-files-regexp. Every next/previous file in the defined sequence is visited by find-file-noselect that returns the corresponding file buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/misearch.el.gz
;;; Global multi-file search invocations

(defun multi-isearch-next-file-buffer-from-list (&optional buffer wrap)
  "Return the next buffer in the series of file buffers.
This function is used for multiple file buffers Isearch.  A sequence
of files is defined by the variable `multi-isearch-file-list' set in
`multi-isearch-files' or `multi-isearch-files-regexp'.
Every next/previous file in the defined sequence is visited by
`find-file-noselect' that returns the corresponding file buffer."
  (let ((files (if isearch-forward
		   multi-isearch-file-list
		 (reverse multi-isearch-file-list))))
    (find-file-noselect
     (if wrap
	 (car files)
       (cadr (member (buffer-file-name buffer) files))))))