From 092c12b25324229235b5fdb6ceaac08b4114603c Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 3 Mar 2014 22:26:17 -0500 Subject: [PATCH] * lisp/files.el (hack-local-variables): Mention file name in warning. --- lisp/ChangeLog | 2 ++ lisp/files.el | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3cc1a5d4d00..2585d41bbb4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2014-03-04 Stefan Monnier + * files.el (hack-local-variables): Mention file name in warning. + * htmlfontify.el (hfy-fontify-buffer): Drop `invis-range' message. 2014-03-04 Michal Nazarewicz diff --git a/lisp/files.el b/lisp/files.el index 7d20e1456b6..8304dccf440 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -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) -- 2.39.2