Function: diff-buffer-file-names
diff-buffer-file-names is a byte-compiled function defined in
diff-mode.el.gz.
Signature
(diff-buffer-file-names &optional OLD NOPROMPT)
Documentation
Return file names corresponding to all of this buffer's hunks.
Optional arguments OLD and NOPROMPT are passed on to
diff-find-file-name, which see.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/diff-mode.el.gz
(defun diff-buffer-file-names (&optional old noprompt)
"Return file names corresponding to all of this buffer's hunks.
Optional arguments OLD and NOPROMPT are passed on to
`diff-find-file-name', which see."
(save-excursion
(cl-loop initially
(goto-char (point-min))
(ignore-errors (diff-file-next))
when (and (looking-at diff-file-header-re)
(diff-find-file-name old noprompt))
collect it
until (eq (prog1 (point)
(ignore-errors (diff-file-next)))
(point)))))