1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-03 22:20:52 -08:00
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
..
ada-mode.el * lisp/progmodes/ada-mode.el (comment-region): Avoid defadvice 2018-09-14 11:25:16 -04:00
ada-prj.el
ada-stmt.el
ada-xref.el
antlr-mode.el
asm-mode.el
autoconf.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
bat-mode.el
bug-reference.el Optionally add argument description in minor mode DOC (bug#10754) 2018-07-01 23:34:53 -04:00
cc-align.el
cc-awk.el
cc-bytecomp.el
cc-cmds.el Add ~44 edebug specs to CC Mode. 2018-10-15 00:45:24 +00:00
cc-defs.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
cc-engine.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
cc-fonts.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
cc-guess.el
cc-langs.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
cc-menus.el
cc-mode.el Merge from origin/emacs-26 2018-11-24 07:51:04 -08:00
cc-styles.el
cc-vars.el
cfengine.el
cmacexp.el file-attributes cleanup 2018-09-23 18:32:59 -07:00
compile.el Make compilation mode work with warnings from compiled buffer functions 2018-11-28 13:19:04 +00:00
cperl-mode.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
cpp.el
cwarn.el Optionally add argument description in minor mode DOC (bug#10754) 2018-07-01 23:34:53 -04:00
dcl-mode.el
ebnf-abn.el
ebnf-bnf.el
ebnf-dtd.el
ebnf-ebx.el
ebnf-iso.el
ebnf-otz.el
ebnf-yac.el
ebnf2ps.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
ebrowse.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
elisp-mode.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
etags.el * lisp/multifile.el: New file, extracted from etags.el 2018-09-22 11:46:35 -04:00
executable.el
f90.el
flymake-cc.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
flymake-proc.el
flymake.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
fortran.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
gdb-mi.el Always define 'define-fringe-bitmap' 2018-10-21 14:36:10 -04:00
glasses.el Optionally add argument description in minor mode DOC (bug#10754) 2018-07-01 23:34:53 -04:00
grep.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
gud.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
hideif.el Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
hideshow.el Optionally add argument description in minor mode DOC (bug#10754) 2018-07-01 23:34:53 -04:00
icon.el
idlw-complete-structtag.el
idlw-help.el
idlw-shell.el * lisp/progmodes/idlw-shell.el: Use lexical-binding 2018-09-14 11:52:15 -04:00
idlw-toolbar.el
idlwave.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
inf-lisp.el
js.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
ld-script.el
m4-mode.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
make-mode.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
mantemp.el
meta-mode.el
mixal-mode.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
modula2.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
octave.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
opascal.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
pascal.el Optionally add argument description in minor mode DOC (bug#10754) 2018-07-01 23:34:53 -04:00
perl-mode.el Don't quote self-quoting pcase patterns 2018-10-30 16:17:45 +01:00
prog-mode.el Optionally add argument description in minor mode DOC (bug#10754) 2018-07-01 23:34:53 -04:00
project.el * lisp/multifile.el: New file, extracted from etags.el 2018-09-22 11:46:35 -04:00
prolog.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
ps-mode.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
python.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
ruby-mode.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
scheme.el
sh-script.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
simula.el
sql.el Replace insignificant backquotes 2018-11-25 21:08:08 +01:00
subword.el Remove uses of obsolete 'CUA' symbol property 2018-11-18 21:15:06 -05:00
tcl.el Fix Tcl indentation in a namespace 2018-07-03 22:13:27 -06:00
vera-mode.el
verilog-mode.el Update verilog-mode with upstream patches. 2018-11-26 07:11:55 -05:00
vhdl-mode.el Optionally add argument description in minor mode DOC (bug#10754) 2018-07-01 23:34:53 -04:00
which-func.el Optionally add argument description in minor mode DOC (bug#10754) 2018-07-01 23:34:53 -04:00
xref.el Add setter for 'xref-marker-ring-length' 2018-11-10 11:43:39 +02:00
xscheme.el