* lisp/files.el (hack-local-variables): Mention file name in warning.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 4 Mar 2014 03:26:17 +0000 (22:26 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 4 Mar 2014 03:26:17 +0000 (22:26 -0500)
lisp/ChangeLog
lisp/files.el

index 3cc1a5d..2585d41 100644 (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>
index 7d20e14..8304dcc 100644 (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)