mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-23 21:37:34 +00:00
(hack-local-variables): If buffer has no file, display its buffer name.
This commit is contained in:
parent
49e4a58a70
commit
51de78c187
1 changed files with 5 additions and 1 deletions
|
|
@ -972,7 +972,11 @@ If `enable-local-variables' is nil, this function does not check for a
|
|||
(beginning-of-line)
|
||||
(set-window-start (selected-window) (point)))
|
||||
(y-or-n-p (format "Set local variables as specified at end of %s? "
|
||||
(file-name-nondirectory buffer-file-name))))))))
|
||||
(if buffer-file-name
|
||||
(file-name-nondirectory
|
||||
buffer-file-name)
|
||||
(concat "buffer "
|
||||
(buffer-name))))))))))
|
||||
(let ((continue t)
|
||||
prefix prefixlen suffix beg
|
||||
(enable-local-eval enable-local-eval))
|
||||
|
|
|
|||
Loading…
Reference in a new issue