Function: emacs-lisp-compilation-file-name-or-buffer
emacs-lisp-compilation-file-name-or-buffer is a byte-compiled function
defined in bytecomp.el.gz.
Signature
(emacs-lisp-compilation-file-name-or-buffer STR)
Documentation
Return file name or buffer given by STR.
If STR is a "normal" filename, just return it.
If STR is something like "Buffer foo.el", return #<buffer foo.el>
(if it is still live) or the string "foo.el" otherwise.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/bytecomp.el.gz
;;; byte compiler messages
(defun emacs-lisp-compilation-file-name-or-buffer (str)
"Return file name or buffer given by STR.
If STR is a \"normal\" filename, just return it.
If STR is something like \"Buffer foo.el\", return #<buffer foo.el>
\(if it is still live) or the string \"foo.el\" otherwise."
(if (string-match "Buffer \\(.*\\)\\'" str)
(or (get-buffer (match-string-no-properties 1 str))
(match-string-no-properties 1 str))
str))