summaryrefslogtreecommitdiff
path: root/lisp/progmodes/compile.el
Commit message (Collapse)AuthorAgeFilesLines
* ; Add 2024 to copyright yearsPo Lu2024-01-021-1/+1
|
* ; Fix typosStefan Kangas2023-12-031-1/+1
|
* Tighten and simplify typescript compilation-mode regexps (bug#61104)Mattias Engdegård2023-02-061-8/+20
| | | | | | | | * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Tighten regexps and simplify. Translate to rx. * etc/compilation.txt: Add examples. In collaboration with Jostein Kjønigsen.
* Add support for TypeScript compilation to compile.el (bug#61104)Jostein Kjønigsen2023-02-041-0/+18
| | | | | * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Add regexps.
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-011-1/+1
|
* compile.el: Fix regression with nb of errors in modelineStefan Monnier2022-12-151-0/+1
| | | | | * lisp/progmodes/compile.el (compilation-mode-line-errors): Mark it as risky-local, like `defconst` used to do for us.
* ; Fix typos (don't abbreviate "with" or "without")Stefan Kangas2022-12-011-1/+1
|
* * lisp/progmodes/compile.el (compilation-mode-line-errors): Use `defvar`Stefan Monnier2022-10-241-1/+1
| | | | This is not really a constant, e.g. it's modified in `grep.el`.
* ; Update the doc string of 'compilation-auto-jump-to-first-error'Eli Zaretskii2022-10-101-2/+7
| | | | | * lisp/progmodes/compile.el (compilation-auto-jump-to-first-error): Doc fix. (Bug#58407)
* Fix some misleading quoting in cl-caseLars Ingebrigtsen2022-09-131-2/+2
| | | | | | | | | | | * lisp/progmodes/compile.el (compilation-auto-jump): * lisp/image/image-crop.el (image-crop--crop-image-1): (image-crop--crop-image-1): * lisp/image/exif.el (exif--process-value): * lisp/image-mode.el (image-mode--next-file): * lisp/dnd.el (dnd-begin-text-drag): (dnd-begin-file-drag): (dnd-begin-drag-files): Fix misleading quoting in cl-case (bug#51368).
* Fix remaining byte-compile warnings in loaddefs.elLars Ingebrigtsen2022-07-311-0/+1
| | | | | | | * lisp/progmodes/compile.el (compilation--default-buffer-name): * lisp/kmacro.el (kmacro-name-last-macro): * lisp/emacs-lisp/package.el (package--activate-all): Autoload to avoid byte-compilation warnings when byte-compiling loaddefs.el.
* Reformulate compile-command conditionLars Ingebrigtsen2022-07-311-1/+1
| | | | | * lisp/progmodes/compile.el: Reformulate to avoid a byte-compile warning when compiling loaddefs.el.
* Clean up more robustly in compile.elJoão Távora2022-07-251-15/+16
| | | | | * lisp/progmodes/compile.el (compilation-sentinel): Use unwind-protect.
* (compilation-parse-errors-function): Remove obsolete varStefan Monnier2022-07-211-95/+26
| | | | | | | | | | | | | | | | | * lisp/progmodes/compile.el (compilation-parse-errors-function): Remove. (compilation--parse-region): Simplify accordingly. (compilation--compat-parse-errors): Remove function, not used any more. (compilation-error-list, compilation-parsing-end) (compilation-old-error-list): Remove vars, not used any more. (compilation-last-buffer): Mark as obsolete (sadly, forgot to do that back in Emacs-22). * lisp/textmodes/tex-mode.el: Remove old code that was needed for Emacs<24. * lisp/progmodes/prolog.el (prolog-consult-compile): Remove long-dead code. (compilation-parse-errors-function): Remove declaration, not used any more. (prolog-parse-sicstus-compilation-errors): Remove function, not used any more.
* Recognize Gradle error messages in compile-modeLars Ingebrigtsen2022-06-301-1/+10
| | | | | | * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Recognize Gradle errors (bug#56249).
* More robust `gnu` pattern (bug#56249)Mattias Engdegård2022-06-291-6/+7
| | | | | | * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Don't allow spaces in the file names, to avoid false matches. Don't allow ad-hoc spaces preceding the program name either.
* Complete transition to rx for compilation `gnu` patternMattias Engdegård2022-06-291-34/+39
| | | | | | * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Change from a mixture of traditional regexp syntax and rx, to make intentions clearer.
* Fix compilation-mode parsing of file names in Gradle errorsLars Ingebrigtsen2022-06-291-8/+9
| | | | | | * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Fix parsing of file names in Gradle output (bug#56249).
* Make `M-x grep' work better with "git grep"Lars Ingebrigtsen2022-06-021-0/+3
| | | | | | * lisp/progmodes/compile.el (compilation-start): Bind PAGER to "" to avoid errors in output from "git grep" and similar commands (bug#4359).
* Allow running several commands in compilation-startLars Ingebrigtsen2022-05-171-23/+38
| | | | | * lisp/progmodes/compile.el (compilation-start): Allow not erasing the contents of the buffer (bug#28892).
* Add new user option compilation-hidden-outputLars Ingebrigtsen2022-05-161-2/+41
| | | | | | | | * doc/emacs/building.texi (Compilation Mode): Document it. * lisp/progmodes/compile.el (compilation-hidden-output): New user option. (compilation-filter): Use it. (compilation--hide-output): New function.
* Add more compilation-auto-jump-to-first-error optionsLars Ingebrigtsen2022-05-101-16/+49
| | | | | | | | | | | * doc/emacs/building.texi (Compilation Mode): Document it. * lisp/progmodes/compile.el (compilation-auto-jump-to-first-error): Extend type. (compilation--file-known-p): New function. (compilation-auto-jump): Use it to support the new values (bug#8228). (compilation-find-file-1): Factored out into own function. (compilation-find-file): Factored out from here.
* Make compilation-parse-errors more resilientLars Ingebrigtsen2022-05-061-2/+3
| | | | | | * lisp/progmodes/compile.el (compilation-parse-errors): Be more resilient in the presence of regexp alist not being completely set up (bug#55282).
* Fix compilation-max-output-line-length typeLars Ingebrigtsen2022-04-301-1/+1
| | | | | * lisp/progmodes/compile.el (compilation-max-output-line-length): Fix the type.
* Truncate output from grepLars Ingebrigtsen2022-04-301-2/+46
| | | | | | | | * doc/emacs/building.texi (Compilation): Document it. * lisp/progmodes/compile.el (compilation-max-output-line-length): New user option (bug#44983). (compilation-filter): Use it. (compilation--insert-abbreviated-line): New function.
* Merge from origin/emacs-28Eli Zaretskii2022-01-011-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 836be7a112 ; * etc/refcards/ru-refcard.tex: Update Copyright year. 86cbc6ee4a * lisp/net/tramp-sh.el: Adapt copyright year ebe8772f65 ; Minor fixes related to copyright years 23c1ee6989 ; * test/manual/etags/ETAGS.good_N: Adjust to copyright ye... 8d3fc7ec89 * src/xfaces.c (face_for_font): Make 'hash' be uintptr_t. 19dcb237b5 ; Add 2022 to copyright years. # Conflicts: # etc/NEWS # etc/refcards/ru-refcard.tex # lib/cdefs.h # lisp/erc/erc-dcc.el # lisp/erc/erc-imenu.el # lisp/erc/erc-replace.el # lisp/image-dired.el # lisp/progmodes/xref.el # m4/alloca.m4 # m4/byteswap.m4 # m4/errno_h.m4 # m4/getopt.m4 # m4/gnulib-common.m4 # m4/inttypes.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/sys_socket_h.m4
| * ; Add 2022 to copyright years.Eli Zaretskii2022-01-011-1/+1
| |
* | Tighten `gnu` compile regexp furtherMattias Engdegård2021-11-241-3/+2
| | | | | | | | | | * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): The -fanalyzer ASCII art does not contain tabs.
* | Simplify `gnu` compilation-mode regexpMattias Engdegård2021-11-221-7/+2
| | | | | | | | | | | | | | | | * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Remove the pattern ostensibly added for Ruby, because at closer inspection it could never have matched anything. This lessens the performance impact of the pattern added for GCC's -fanalyzer, now slightly tweaked.
* | Improve error parsing for GCC -fanalyzer outputPhilip Kaludercic2021-11-211-1/+4
| | | | | | | | | | * compile.el (compilation-error-regexp-alist-alist): Adjust gnu rule * compile-tests.el (compile-tests--test-regexps-data): Add testcase
* | Merge from origin/emacs-28Glenn Morris2021-10-161-1/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e8488808df Avoid aborts when a thread is signaled while "waiting for ... 21397cce51 Improve documentation string for 'compilation-error-regexp... 2971a6890f * lisp/emacs-lisp/comp.el (comp-trampoline-compile): Fix t... e842d7f29a Fix removal of fringe indication of bookmarks b5a0eda978 Prefer "graphical displays" to "X terminals" in documentation 4ad0fc0dd0 Precise documentation of file-notify-add-watch f5b8df14c6 Fixes to account for windows' tab lines ced72b6e4c * Fix `native-compile-target-directory' effectiveness on t... 502788bc3d Add missing single quotes in the Emacs manual 1af45ad04e ; * lisp/emacs-lisp/comp.el (comp-trampoline-compile): Fix... 12654b7423 * lisp/menu-bar.el (yank-menu-length): Fix docstring (bug#... # Conflicts: # lisp/gnus/gnus-undo.el # lisp/menu-bar.el
| * Improve documentation string for 'compilation-error-regexp-alist'.Philipp Stephani2021-10-161-1/+2
| | | | | | | | | | * lisp/progmodes/compile.el (compilation-error-regexp-alist): Clarify behavior when TYPE is a cons cell.
* | Mark def* macros for indentationLars Ingebrigtsen2021-10-131-0/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/widget.el (define-widget-keywords): * lisp/vc/pcvs.el (defun-cvs-mode): * lisp/subr.el (defvar-local): (defvar-keymap): * lisp/skeleton.el (define-skeleton): * lisp/simple.el (define-alternatives): * lisp/progmodes/gud.el (gdb-script-mode): * lisp/progmodes/gdb-mi.el (def-gdb-preempt-display-buffer): (def-gdb-auto-update-trigger): (def-gdb-auto-update-handler): (def-gdb-trigger-and-handler): (def-gdb-thread-buffer-command): (def-gdb-thread-buffer-simple-command): (def-gdb-thread-buffer-gud-command): (def-gdb-set-positive-number): (def-gdb-memory-format): (def-gdb-memory-unit): (def-gdb-memory-show-page): * lisp/progmodes/compile.el (define-compilation-mode): * lisp/progmodes/cc-vars.el (defcustom-c-stylevar): * lisp/obsolete/cl.el (define-setf-expander): (defsetf): (define-modify-macro): * lisp/obsolete/cl-compat.el (defkeyword): * lisp/net/hmac-def.el (define-hmac-function): * lisp/international/mule-conf.el (define-iso-single-byte-charset): * lisp/international/ccl.el (define-ccl-program): * lisp/image.el (defimage): * lisp/gnus/gmm-utils.el (defun-gmm): * lisp/ezimage.el (defezimage): * lisp/erc/erc.el (define-erc-module): * lisp/emacs-lisp/shortdoc.el (define-short-documentation-group): * lisp/emacs-lisp/eieio.el (defclass): * lisp/emacs-lisp/eieio-compat.el (defgeneric): (defmethod): * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): (define-globalized-minor-mode): * lisp/emacs-lisp/derived.el (define-derived-mode): * lisp/emacs-lisp/byte-run.el (defsubst): (define-obsolete-function-alias): (define-obsolete-variable-alias): * lisp/custom.el (defcustom): (defface): (defgroup): (deftheme): * lisp/cedet/semantic/wisent.el (define-wisent-lexer): * lisp/cedet/semantic/lex.el (define-lex): (define-lex-analyzer): (define-lex-regex-analyzer): (define-lex-simple-regex-analyzer): (define-lex-block-analyzer): (define-lex-keyword-type-analyzer): (define-lex-sexp-type-analyzer): (define-lex-regex-type-analyzer): (define-lex-string-type-analyzer): (define-lex-block-type-analyzer): * lisp/cedet/semantic/lex-spp.el (define-lex-spp-macro-declaration-analyzer): (define-lex-spp-macro-undeclaration-analyzer): (define-lex-spp-include-analyzer): * lisp/cedet/semantic/dep.el (defcustom-mode-local-semantic-dependency-system-include-path): * lisp/cedet/semantic/decorate/mode.el (define-semantic-decoration-style): * lisp/cedet/mode-local.el (define-child-mode): (define-overloadable-function): (define-mode-local-override): * lisp/calc/calc.el (defcalcmodevar): (defmath): Explicitly mark all macros that have names that start with "def" that should indent defunly-like (bug#43329).
* ; More minor stylistic fixes found by checkdocStefan Kangas2021-09-221-3/+5
|
* Don't use `format' on strings without % format directivesLars Ingebrigtsen2021-09-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/vc/ediff-init.el (ediff-BAD-INFO): * lisp/url/url-ldap.el (url-ldap): * lisp/url/url-http.el (url-http--user-agent-default-string): * lisp/textmodes/reftex.el (reftex-access-parse-file): * lisp/textmodes/reftex-index.el (reftex-index-phrases-info): * lisp/textmodes/ispell.el (ispell-create-debug-buffer): * lisp/term.el (serial-read-speed): * lisp/progmodes/verilog-mode.el (verilog-scan-debug): * lisp/progmodes/idlwave.el (idlwave-find-module): * lisp/progmodes/compile.el (compilation-revert-buffer): * lisp/org/org-agenda.el (org-search-view): * lisp/net/telnet.el (telnet-revert-buffer): * lisp/net/soap-inspect.el (soap-sample-value-for-xs-simple-type): * lisp/net/newst-backend.el (newsticker--cache-read): * lisp/mh-e/mh-seq.el (mh-msg-is-in-seq): * lisp/mail/smtpmail.el (smtpmail-via-smtp): * lisp/mail/emacsbug.el (report-emacs-bug): * lisp/jsonrpc.el (jsonrpc-error): * lisp/help-fns.el (describe-variable): * lisp/gnus/mm-decode.el (mm-possibly-verify-or-decrypt): * lisp/gnus/gnus.el (gnus-group-startup-message): (gnus-group-startup-message): * lisp/gnus/gnus-group.el (gnus-group-restart): * lisp/frame.el (make-frame-on-display): * lisp/emulation/viper-ex.el (ex-help): * lisp/calendar/icalendar.el (icalendar--convert-ical-to-diary): (icalendar--add-diary-entry): * lisp/calendar/cal-tex.el (cal-tex-end-document): * lisp/calc/calcalg3.el (math-ninteg-romberg): Don't use `format' on strings that have no % format directives in them.
* Make 'compile' respect buffer-local process environmentAugusto Stoffel2021-09-161-0/+9
| | | | | | * lisp/progmodes/compile.el (compilation-start): Use `process-environment' from original buffer in the compilation process (bug#50607).
* ; Minor doc fixes found by checkdocStefan Kangas2021-09-131-4/+4
|
* Fix problem with symlinks in compile buffersLars Ingebrigtsen2021-08-261-3/+6
| | | | | | | * lisp/progmodes/compile.el (compilation-find-file): Avoid `expand-file-name' when computing the file names, because that will reliably give the wrong result when there's symlinks and ".." involved (bug#8035).
* ; compilation-error-regexp-alist-alist): eval-when-compileMattias Engdegård2021-07-311-1/+2
|
* Off-by-one error in compilation rule end-column function (bug#49624)Mattias Engdegård2021-07-231-5/+8
| | | | | | | | * lisp/progmodes/compile.el (compilation-error-properties): When the end-column parameter of a compilation message rule (in compilation-error-regexp-alist[-alist]) is a function, treat its return value as if it were matched by the regexp, which is how it is documented to work, and how all other parameters work.
* Count compile errors when FILE is a functionMattias Engdegård2021-07-181-1/+1
| | | | | | * lisp/progmodes/compile.el (compilation-parse-errors): Don't omit messages from the error count when FILE is a function rather than a regexp match number.
* compilation-goto-locus does not handle right display-bufferpillule2021-03-281-2/+3
| | | | | | | * lisp/progmodes/compile.el (compilation-goto-locus): Pop to the source buffer if the match buffer is the selected window (bug#47414). Copyright-paperwork-exempt: yes
* Fix problem in Tramp running two async processes in parallelMichael Albinus2021-03-161-6/+1
| | | | | | | | | * lisp/net/tramp-integration.el (tramp-compile-disable-ssh-controlmaster-options): New defun. Add it to `compilation-mode-hook'. (Bug#45518) * lisp/progmodes/compile.el (compilation-get-file-structure): Revert commit 4ce5646d59, it isn't needed.
* Add command to recenter errors from Occur/Grep buffersTino Calancha2021-02-071-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | To scroll up/down the current displayed occurrence/error without abandon the Occur/Grep buffer. Add also a command 'recenter-other-window' to recenter the other window from any kind of buffer. * lisp/window.el (recenter-other-window): New command. Bind recenter-other-window to S-M-C-l (Bug#46119). * lisp/simple.el (recenter-current-error): New command. * lisp/progmodes/grep.el (grep-mode-map): Delete bidings for n and p. * lisp/progmodes/compile.el (compilation-minor-mode-map): Move here the n and p bindings. Bind `recenter-current-error' to l. * lisp/replace.el (occur-mode-map): Same. * doc/emacs/windows.texi (Other Window): * doc/emacs/display.texi (Recentering): Document recenter-other-window. * etc/NEWS (Changes in Specialized Modes and Packages in Emacs 28.1): Announce the changes.
* Prefer defvar-local in progmodes/*.elStefan Kangas2021-01-311-10/+5
| | | | | | | | | | | | | | | | | | | This skips libraries that might want compatibility with Emacs 24.2. * lisp/progmodes/compile.el (compilation-auto-jump-to-next) (compilation--previous-directory-cache, compilation--parsed) (compilation-gcpro): * lisp/progmodes/cpp.el (cpp-overlay-list, cpp-edit-buffer) (cpp-parse-symbols, cpp-edit-symbols): * lisp/progmodes/ebnf2ps.el (ebnf-eps-upper-x, ebnf-eps-upper-y) (ebnf-eps-prod-width, ebnf-eps-max-height, ebnf-eps-max-width): * lisp/progmodes/f90.el (f90-cache-position): * lisp/progmodes/gud.el (gud-marker-acc): * lisp/progmodes/js.el (js--quick-match-re) (js--quick-match-re-func, js--cache-end, js--last-parse-pos) (js--state-at-last-parse-pos, js--tmp-location): * lisp/progmodes/octave.el (inferior-octave-directory-tracker-resync): * lisp/progmodes/sh-script.el (sh-header-marker): Prefer defvar-local.
* Fix Bug#45518 in compile.elMichael Albinus2021-01-291-1/+6
| | | | | * lisp/progmodes/compile.el (compilation-get-file-structure): Avoid call of `file-truename' for remote files. (Bug#45518)
* Merge from origin/emacs-27Paul Eggert2021-01-011-4/+4
|\ | | | | | | 33d159c36f Fix copyright years by hand
| * Update copyright year to 2021Paul Eggert2021-01-011-1/+1
| | | | | | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* | Update copyright year to 2021Paul Eggert2021-01-011-1/+1
| | | | | | | | Run "TZ=UTC0 admin/update-copyright".
* | Stricter gradle-kotlin message patternMattias Engdegård2020-12-091-5/+14
| | | | | | | | | | | | | | | | | | | | * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Rule 'gradle-kotlin': don't be more forgiving than necessary; we know exactly what the output looks like (see https://github.com/JetBrains/kotlin/commit/\ ffe8ae3840d7b9bdc82170c8181031f05ced68bd) and there is no reason to risk mismatches or expensive backtracking (bug#18109). Recognise 'info' level messages. Convert to rx.