]> code.delx.au - gnu-emacs/blobdiff - lisp/emacs-lisp/macroexp.el
* mh-e.texi (VERSION, EDITION, UPDATED, UPDATE-MONTH): Update for
[gnu-emacs] / lisp / emacs-lisp / macroexp.el
index 3bf08ee8a97c36463b47b5b5793f3bd015e320be..6bb796434fd37c605fbd472e7222354adf76167e 100644 (file)
@@ -124,7 +124,10 @@ and also to avoid outputting the warning during normal execution."
          (macroexp--funcall-if-compiled ',when-compiled)
          ,form))
      (t
-      (message "%s" msg)
+      (message "%s%s" (if (stringp load-file-name)
+                          (concat (file-relative-name load-file-name) ": ")
+                        "")
+               msg)
       form))))
 
 (defun macroexp--obsolete-warning (fun obsolescence-data type)