Fix warning message in hack-local-variables

* lisp/files.el (hack-local-variables): use 'thisbuf' to reference
the original buffer name in the warning message.  (Bug#21681)
This commit is contained in:
Noam Postavsky 2016-02-03 19:48:45 +02:00 committed by Eli Zaretskii
parent 504696d75d
commit 2c0dc9fa70

View file

@ -3426,7 +3426,11 @@ local variables, but directory-local variables may still be applied."
(format-message
"%s: `lexical-binding' at end of file unreliable"
(file-name-nondirectory
(or buffer-file-name ""))))))
;; We are called from
;; 'with-temp-buffer', so we need
;; to use 'thisbuf's name in the
;; warning message.
(or (buffer-file-name thisbuf) ""))))))
(t
(ignore-errors
(push (cons (if (eq var 'eval)