diff options
| author | Glenn Morris | 2012-12-14 16:27:39 -0500 |
|---|---|---|
| committer | Glenn Morris | 2012-12-14 16:27:39 -0500 |
| commit | a5f74442196408f91cab24147b6322b3355b728d (patch) | |
| tree | 3fc43bcf570e1092c90627325ce835b634d5781c | |
| parent | cccaebd24d257278c31493e10a7a837ddb12fc4f (diff) | |
| download | emacs-a5f74442196408f91cab24147b6322b3355b728d.tar.gz emacs-a5f74442196408f91cab24147b6322b3355b728d.zip | |
macroexp--warn-and-return message tweak (bug#13132)
* lisp/emacs-lisp/macroexp.el (macroexp--warn-and-return):
Try to include filename in non-bytecomp warning.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/macroexp.el | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 15cdb5cb879..0517a66916f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-12-14 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/macroexp.el (macroexp--warn-and-return): | ||
| 4 | Try to include filename in non-bytecomp warning. (Bug#13132) | ||
| 5 | |||
| 1 | 2012-12-14 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2012-12-14 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | Fix permissions bugs with setgid directories etc. (Bug#13125) | 8 | Fix permissions bugs with setgid directories etc. (Bug#13125) |
diff --git a/lisp/emacs-lisp/macroexp.el b/lisp/emacs-lisp/macroexp.el index 2a3730745c6..7a1a21f505b 100644 --- a/lisp/emacs-lisp/macroexp.el +++ b/lisp/emacs-lisp/macroexp.el | |||
| @@ -124,7 +124,10 @@ and also to avoid outputting the warning during normal execution." | |||
| 124 | (macroexp--funcall-if-compiled ',when-compiled) | 124 | (macroexp--funcall-if-compiled ',when-compiled) |
| 125 | ,form)) | 125 | ,form)) |
| 126 | (t | 126 | (t |
| 127 | (message "%s" msg) | 127 | (message "%s%s" (if (stringp load-file-name) |
| 128 | (concat (file-relative-name load-file-name) ": ") | ||
| 129 | "") | ||
| 130 | msg) | ||
| 128 | form)))) | 131 | form)))) |
| 129 | 132 | ||
| 130 | (defun macroexp--obsolete-warning (fun obsolescence-data type) | 133 | (defun macroexp--obsolete-warning (fun obsolescence-data type) |