* lisp/files.el (hack-local-variables): Mention file name in warning.

This commit is contained in:
Stefan Monnier 2014-03-03 22:26:17 -05:00
parent 62528af05e
commit 092c12b253
2 changed files with 7 additions and 2 deletions

View file

@ -1,5 +1,7 @@
2014-03-04 Stefan Monnier <monnier@iro.umontreal.ca>
* files.el (hack-local-variables): Mention file name in warning.
* htmlfontify.el (hfy-fontify-buffer): Drop `invis-range' message.
2014-03-04 Michal Nazarewicz <mina86@mina86.com>

View file

@ -3340,8 +3340,11 @@ local variables, but directory-local variables may still be applied."
((eq var 'lexical-binding)
(unless hack-local-variables--warned-lexical
(setq hack-local-variables--warned-lexical t)
(display-warning :warning
"Specify `lexical-binding' on the first line, not at the end")))
(display-warning
:warning
(format "%s: `lexical-binding' at end of file unreliable"
(file-name-nondirectory
(or buffer-file-name ""))))))
(t
(ignore-errors
(push (cons (if (eq var 'eval)