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:
parent
504696d75d
commit
2c0dc9fa70
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue