Function: emerge-show-file-name
emerge-show-file-name is an interactive and byte-compiled function
defined in emerge.el.gz.
This command is obsolete since 29.1.
Signature
(emerge-show-file-name)
Documentation
Displays the name of the file loaded into the current buffer.
If the name won't fit on one line, the minibuffer is expanded to hold it, and the command waits for a keystroke from the user. If the keystroke is SPC, it is ignored; if it is anything else, it is processed as a command.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/vc/emerge.el.gz
;; Show the name of the file in the buffer.
(defun emerge-show-file-name ()
"Displays the name of the file loaded into the current buffer.
If the name won't fit on one line, the minibuffer is expanded to hold it,
and the command waits for a keystroke from the user. If the keystroke is
SPC, it is ignored; if it is anything else, it is processed as a command."
(declare (obsolete nil "29.1"))
(interactive)
(let ((name (buffer-file-name)))
(or name
(setq name "Buffer has no file name."))
(save-window-excursion
(select-window (minibuffer-window))
(unwind-protect
(progn
(erase-buffer)
(insert name)
(while (and (not (pos-visible-in-window-p))
(not (window-full-height-p)))
(enlarge-window 1))
(let* ((echo-keystrokes 0)
(c (read-event)))
(if (not (eq c 32))
(push c unread-command-events))))
(erase-buffer)))))