changeset 4837:b040c520f090

(hack-local-variables): If buffer has no file, display its buffer name.
author Richard M. Stallman <rms@gnu.org>
date Sat, 09 Oct 1993 03:46:57 +0000
parents 38a0f0209707
children 754b38c0e941
files lisp/files.el
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Sat Oct 09 03:46:37 1993 +0000
+++ b/lisp/files.el	Sat Oct 09 03:46:57 1993 +0000
@@ -972,7 +972,11 @@
 			    (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))