emacs/lisp/emacs-lisp
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
..
advice.el * lisp/emacs-lisp/advice.el: Only use defmacro when needed 2018-09-17 14:02:05 -04:00
autoload.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
avl-tree.el
backquote.el
backtrace.el Fix links in backtraces to work on advised built-ins (Bug#25393) 2018-08-27 10:43:57 -07:00
benchmark.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
bindat.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
byte-opt.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
byte-run.el Fix the bootstrap differently, so zerop can be where it belongs 2018-07-12 10:29:28 -04:00
bytecomp.el Make compilation mode work with warnings from compiled buffer functions 2018-11-28 13:19:04 +00:00
cconv.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
chart.el
check-declare.el
checkdoc.el Merge from origin/emacs-26 2018-11-04 09:37:03 -08:00
cl-extra.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
cl-generic.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
cl-indent.el
cl-lib.el Allow setf of buffer-modified-p without argument (Bug#21201) 2018-08-27 18:54:23 -04:00
cl-macs.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
cl-preloaded.el Add missing module types to cl--typeof-types. 2018-01-28 20:39:58 +01:00
cl-print.el Add new command to expand all "..."s in a backtrace frame 2018-08-03 08:53:02 -07:00
cl-seq.el
cl.el Fix #'fun handling inside `labels' (Bug#31792) 2018-06-19 20:02:16 -04:00
copyright.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
crm.el Support list of default values in completing-read-multiple 2018-04-12 23:36:45 +03:00
cursor-sensor.el
debug.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
derived.el Don't quote self-quoting pcase patterns 2018-10-30 16:17:45 +01:00
disass.el
easy-mmode.el Improve doc strings generated by 'easy-mmode-define-navigation' 2018-11-09 11:22:46 +02:00
easymenu.el Don't quote self-quoting pcase patterns 2018-10-30 16:17:45 +01:00
edebug.el Merge from origin/emacs-26 2018-11-20 09:38:43 -08:00
eieio-base.el Further fix to eieio-persistent 2018-10-04 12:10:58 -07:00
eieio-compat.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
eieio-core.el Don't quote self-quoting pcase patterns 2018-10-30 16:17:45 +01:00
eieio-custom.el
eieio-datadebug.el
eieio-opt.el Define cl-type-definition button type as needed (Bug#28899) 2018-01-30 22:14:02 -05:00
eieio-speedbar.el
eieio.el Merge from origin/emacs-26 2018-05-29 10:07:21 +02:00
eldoc.el Optionally add argument description in minor mode DOC (bug#10754) 2018-07-01 23:34:53 -04:00
elint.el Prefer \... to control chars in .el literals 2018-03-29 17:43:08 -07:00
elp.el Merge from origin/emacs-26 2018-02-17 07:50:28 -08:00
ert-x.el
ert.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
ewoc.el * lisp/emacs-lisp/ewoc.el (ewoc-goto-node): 2018-03-05 14:32:20 -05:00
faceup.el
find-func.el Fix default candidate of find-face-definition 2018-06-09 09:52:54 +03:00
float-sup.el
generator.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
generic.el Remove many items obsolete since Emacs 22.1 2018-03-10 19:15:56 -08:00
gv.el * lisp/emacs-lisp/gv.el (gv-define-setter): Silence compiler warning 2018-04-18 15:56:15 -04:00
helper.el
inline.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
let-alist.el
lisp-mnt.el * lisp/emacs-lisp/lisp-mnt.el: Use lexical-binding 2018-10-10 09:20:19 -04:00
lisp-mode.el Merge from origin/emacs-26 2018-10-27 09:15:32 -07:00
lisp.el * lisp/emacs-lisp/lisp.el (delete-pair): Add optional prefix arg. 2018-10-19 02:09:15 +03:00
macroexp.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
map-ynp.el ; (read-answer-short): Fix :version setting for backport 2018-08-04 12:00:43 -04:00
map.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
nadvice.el Merge from origin/emacs-26 2018-05-23 01:37:54 -07:00
package-x.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
package.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
pcase.el Merge from origin/emacs-26 2018-11-04 09:37:03 -08:00
pp.el
radix-tree.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
re-builder.el
regexp-opt.el * lisp/emacs-lisp/regexp-opt.el (regexp-opt): Fix docstring quotes. 2018-06-24 10:57:54 -04:00
regi.el
ring.el Add 'ring-resize' function 2018-11-10 11:41:51 +02:00
rmc.el Improve read-multiple-choice docstring (Bug#31628) 2018-05-29 08:17:32 -04:00
rx.el Merge from origin/emacs-26 2018-10-31 07:50:57 -07:00
seq.el Change name of `seqp' argument (Bug#26411) 2018-06-21 20:27:35 -04:00
shadow.el file-attributes cleanup 2018-09-23 18:32:59 -07:00
smie.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
subr-x.el Tweak subr-x.el substring functions 2018-07-13 11:28:16 -04:00
syntax.el * lisp/emacs-lisp/syntax.el (syntax-propertize-rules): Allow empty rules 2018-11-02 17:47:11 -04:00
tabulated-list.el
tcover-ses.el Prefer \... to control chars in .el literals 2018-03-29 17:43:08 -07:00
tcover-unsafep.el
testcover.el Fix Testcover bug in handling of vectors containing dotted lists 2018-04-02 09:38:12 -07:00
text-property-search.el (text-property-search-forward): Copy edits in doc string 2018-04-22 20:34:48 +02:00
thunk.el Quieten cl-lib related compiler warnings 2018-03-22 21:40:24 -07:00
timer-list.el
timer.el Improve rounding in recent timer fix 2018-10-22 19:34:49 -07:00
tq.el
trace.el
unsafep.el Remove many items obsolete since Emacs 22.1 2018-03-10 19:15:56 -08:00
warnings.el Let display-warning work during bootstrap 2018-06-12 07:40:33 -04:00