Commit 2c0dc9fa authored by Noam Postavsky's avatar Noam Postavsky Committed by Eli Zaretskii

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)
parent 504696d7
......@@ -3426,7 +3426,11 @@ local variables, but directory-local variables may still be applied."
"%s: `lexical-binding' at end of file unreliable"
(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) ""))))))
(push (cons (if (eq var 'eval)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment