Files
emacs/lisp/progmodes
Alan Mackenzie 1ca436a33c Make compilation mode work with warnings from compiled buffer functions
In particular, warning messages from compile_defun now contain the source
buffer name and line and column numbers.  Typing CR on such a warning now
moves to the pertinent place in the source buffer.

This fixes bug #33475

* lisp/emacs-lisp/bytecomp.el (top-level): Require compile.elc?.
(emacs-lisp-compilation-file-name-or-buffer)
(emacs-lisp-compilation-parse-errors-filename-function): New
variables/constants.
(emacs-lisp-compilation-mode): New mode derived from compilation-mode.
(byte-compile-log-file): Check byte-compile-current-file for being a string,
not merely non-nil.  Change wording in message from "buffer" to "in buffer".
Go into emacs-lisp-compilation-mode rather than the plain compilation-mode.
(compile-defun): Bind byte-compile-current-file to current-buffer, not nil.

* lisp/progmodes/compilation-mode
(compilation-parse-errors-filename-function): Amend comments to specify that
this function may return a buffer, and that it need not save the match data.
(Several places): Amend comments to allow for the use of a buffer rather than
a file name.
(compilation-next-error-function): If the "file name" in file struct is
actually a buffer, use it rather than compilation-find-file's result.
(compilation-get-file-structure): save-match-data around the call to
compilation-parse-errors-filename-function.  Only call
command-line-normalize-file-name when `filename' is a string.
2018-11-28 13:19:04 +00:00
..
2018-11-25 21:08:08 +01:00
2018-10-15 00:45:24 +00:00
2018-11-25 21:08:08 +01:00
2018-11-25 21:08:08 +01:00
2018-11-25 21:08:08 +01:00
2018-11-25 21:08:08 +01:00
2018-11-24 07:51:04 -08:00
2018-09-23 18:32:59 -07:00
2018-11-25 21:08:08 +01:00
2018-08-21 13:44:32 -07:00
2018-11-25 21:08:08 +01:00
2018-11-25 21:08:08 +01:00
2018-11-25 21:08:08 +01:00
2018-11-25 21:08:08 +01:00
2018-11-25 21:08:08 +01:00
2018-10-21 14:36:10 -04:00
2018-11-25 21:08:08 +01:00
2018-11-25 21:08:08 +01:00
2018-08-21 13:44:32 -07:00
2018-11-25 21:08:08 +01:00
2018-11-25 21:08:08 +01:00
2018-11-25 21:08:08 +01:00
2018-11-25 21:08:08 +01:00
2018-11-25 21:08:08 +01:00
2018-11-25 21:08:08 +01:00
2018-11-25 21:08:08 +01:00
2018-11-25 21:08:08 +01:00
2018-11-25 21:08:08 +01:00
2018-11-25 21:08:08 +01:00
2018-11-25 21:08:08 +01:00
2018-11-25 21:08:08 +01:00
2018-11-25 21:08:08 +01:00
2018-11-25 21:08:08 +01:00
2018-07-03 22:13:27 -06:00