aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes (follow)
Commit message (Collapse)AuthorAgeFilesLines
* font-lock special attributes in python-modeHong Xu2019-11-221-2/+8
| | | | | * lisp/progmodes/python.el (python-font-lock-keywords-level-2): Add special attributes (bug#38318).
* When verilog-auto-ignore-concat is true, also ignore parenthesized signals.Wilson Snyder2019-11-211-11/+11
| | | | | | * lisp/progmodes/verilog-mode.el (verilog-auto-ignore-concat): When `verilog-auto-ignore-concat' is true, also ignore parenthesized signals.
* Compilation Mode: Fix arrow handling when compilation-context-lines is tAlan Mackenzie2019-11-171-16/+29
| | | | | | | | | | | | | | | | | | In particular, fix some exception occurrences, fix handling of a Compilation Mode buffer being displayed in several windows, and fix the margin when temporarily displaying a different buffer in a window, then returning to the compilation mode buffer. The fix is relevant for frames without fringes, e.g. tty frames. * lisp/progmodes/compile.el: (compilation-set-window): Always set point to (parameter) MK. (compilation--set-up-margin, compilation--tear-down-margin): New functions. (compilation--set-up-arrow-spec-in-margins) (compilation--tear-down-arrow-spec-in-margins): Renamed by introducing -- and pluralising margin to margins. Handle the margins in _all_ windows displaying the pertinent buffer by using get-buffer-window-list. In ...--set-up-... add compilation--set-up-margin to window-buffer-change-functions. In ...--tear-down-... remove the hook functions added in ...--set-up-....
* * lisp/progmodes/perl-mode.el (perl-calculate-indent): Indent qw(...)Stefan Monnier2019-11-151-9/+22
| | | | | Fix initialization of `state`. Special-case `qw(...)` because we do want to indent its contents.
* CC Mode: Fix two bugs in the "state cache".Alan Mackenzie2019-11-141-19/+42
| | | | | | | | | | | | | | | | This (along with a suggestion to the OP to set open-paren-in-column-0-is-defun-start to nil) fixes bug #37910. It may also have fixed bug #5490 and bug #18072. * lisp/progmodes/cc-engine.el (c-state-cache-non-literal-place): Remove thi non-sensical function, replacing it with .... (c-state-cache-lower-good-pos): New function. (c-renarrow-state-cache, c-append-lower-brace-pair-to-state-cache) (c-remove-stale-state-cache, c-remove-stale-state-cache-backwards): Instead of altering the state-cache list structure with setcar and setcdr, use setq and consing. (c-parse-state-1): Call c-state-cache-lower-good-pos rather than c-state-cache-non-literal-place.
* Fix a few more minor quoting problems.Paul Eggert2019-11-111-1/+1
|
* Fix some quoting glitches in doc stringsPaul Eggert2019-11-119-37/+37
|
* Verilog-Mode collected updates.Wilson Snyder2019-11-111-15/+44
| | | | | | | | | | | | | | | * lisp/progmodes/verilog-mode.el (verilog-read-decls): Fix to skip over base64-encoded protected data while reading AUTO declarations. Reported by Berend Ozceri. (verilog-auto-inst-port, verilog-auto-inst-vector): Support 'unsigned' in `verilog-auto-inst-vector'. Reported by Jeff Riley. (verilog-read-decls): Fix to ignore `line in AUTOINST, git bug18. Reported by Berend Ozceri. (verilog-library-extensions): Support .va /.vah/.sva/.svah file extensions to load verilog-mode for Verilog-AMS. Reported by Shareef Jalloq. (verilog-read-sub-decls-expr): Fix AUTOOUTPUT etc misparsing Verilog casts, bug1526. Reported by Udi Finkelstein.
* * lisp/progmodes/cc-vars.el (c-mark-wrong-style-of-comment):Glenn Morris2019-11-091-1/+1
| | | | Fix version.
* Widen around c-font-lock-fontify-region. This fixes bug #38049.Alan Mackenzie2019-11-091-38/+40
| | | | | | * lisp/progmodes/cc-mode (c-font-lock-fontify-region): Widen in this function, to ensure that the CC Mode font locking mechanism can examine characters outside the given region.
* CC Mode. Allow fontification of "wrong" style comments with warning face.Alan Mackenzie2019-11-094-1/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | This fixes bug #4192. * etc/NEWS: Add a new entry. * lisp/progmodes/cc-defs.el (c-font-lock-flush): New macro. * lisp/progmodes/cc-cmds.el (c-toggle-comment-style): On toggling the comment style, invoke c-font-lock-flush when c-mark-wrong-style-of-comment is non-nil, to cause that marking to be done instead on the other style of comment. * lisp/progmodes/cc-fonts.el (c-maybe-font-lock-wrong-style-comments): New function. (c-cpp-matchers): Call c-maybe-font-lock-wrong-style-comments when appropriate. * lisp/progmodes/cc-vars.el (c-mark-wrong-style-of-comment): New customizable option. * doc/misc/cc-mode.texi (top level, Indentation Commands, Guessing the Style, Custom Macros): For some opening quote marks, correct '' to ``. (Minor Modes): Add an xref to the new page "Wrong Comment Style" in a footnote. (Wrong Comment Style): New page.
* Fix some quoting glitches in doc stringsPaul Eggert2019-11-082-3/+3
| | | | This also fixes a misplaced "only".
* python.el: Pdbtracking improvementsAndrii Kolomoiets2019-11-071-25/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow not to kill buffers when pdbtracking session is finished. Pdbtracking session considered finished judging from the user input. * lisp/progmodes/python.el (python-pdbtrack-kill-buffers): New customizable variable. (python-pdbtrack-set-tracked-buffer): Use it. (python-pdbtrack-unset-tracked-buffer) (python-pdbtrack-tracking-finish): New functions. (python-pdbtrack-continue-command, python-pdbtrack-exit-command): New customizable variables. (python-pdbtrack-process-sentinel): New function. Finish pdbtracking session when process is killed. (python-pdbtrack-prev-command-continue): New variable. (python-pdbtrack-comint-input-filter-function): New function. Finish pdbtracking session based on commands sent to pdb. (python-pdbtrack-comint-output-filter-function): Unset/set tracking buffer if looking at pdb prompt; finish pdbtracking session if filename of current stack frame starts with "<" e.g. "<stdin>". (python-pdbtrack-comint-output-filter-function): Don't override overlay-arrow-string. (python-pdbtrack-setup-tracking): New function. (inferior-python-mode): Use it. (python-pdbtrack-stacktrace-info-regexp): Default value is changed. Must also match lines with filename like "<stdin>" and "<string>". * etc/NEWS: Mention python-pdbtrack-kill-buffers
* Add a full set of CC Mode language variables to js.el.Alan Mackenzie2019-11-061-8/+21
| | | | | | | | | | | | This will allow js.el to work after maintenance changes in CC Mode, e.g. the fix to bug #11165. * lisp/progmodes/js.el (top level): Create a CC Mode derived language called js-mode and based on Java Mode. (js-mode): call c-init-language-vars for js-mode. Remove the direct settings of several CC Mode language variables which are now defined through the derived language mechanism. Call c-set-style and set up the needed style variables c-block-comment-prefix and c-comment-prefix-regexp.
* Allow flymake diagnostic types to have shorter namesJoão Távora2019-11-021-1/+6
| | | | | | | | | | | | | | | | Eglot, a third-party package which uses Flymake, has its own diagnostic types such as 'eglot-error', 'eglot-warning', etc... While not being too long, they will not fit in the type column of the "list all diagnostics" buffer. This commit allows diagnostic types to have user-defined names and also assigns names to the default categories. * doc/misc/flymake.texi (Flymake error types): Describe flymake-type-name prop. * lisp/progmodes/flymake.el (flymake--diagnostics-buffer-entries): Use type names. (flymake-error, flymake-warning, flymake-note): Give these diagnostic categories default type names.
* Avoid face clashes between Flymake and region highlightingJoão Távora2019-11-021-1/+3
| | | | | | | Fix bug#34022. * lisp/progmodes/flymake.el (flymake--highlight-line): Use (PRIMARY . SECONDARY) priority value.
* Clarify consequences of mismatching Flymake diagnostic buffersJoão Távora2019-11-021-1/+4
| | | | | | | | | | Fix bug#34418. * doc/misc/flymake.texi (Flymake utility functions): Add note to flymake-make-diagnostic. * lisp/progmodes/flymake.el (flymake--handle-report): Discard diagnostics from other buffers.
* CC Mode. Fix slow scrolling by adding a search limit.Alan Mackenzie2019-11-021-1/+1
| | | | | | | This fixes bug #10149. * lisp/progmodes/cc-fonts.el (c-font-lock-single-decl) Limit the search by c-go-up-list-backwards to 500 non-literal characters.
* Make ant regexp in compilation-error-regexp-alist-alist more laxFilipp Gunbin2019-11-011-2/+5
| | | | | | | * lisp/progmodes/compile.el: Make ant regexp accept filenames that may occur on Cygwin (like c:/test) and optional additional severity level after task name. * etc/compilation.txt: Add sample.
* Further tweaks to sh-script \ #foo font lockingLars Ingebrigtsen2019-10-311-2/+4
| | | | | | | * lisp/progmodes/sh-script.el (sh-syntax-propertize-function): Tweak previous \ #foo change to work on all quoted characters, but check that the backslash itself is not backslashed. Regexp from Stefan Monnier.
* Send -enable-frame-filters to gdbTom Tromey2019-10-301-0/+1
| | | | | * lisp/progmodes/gdb-mi.el (gdb-init-1): Send -enable-frame-filters to gdb.
* Fix previous sh-script.el font-lock #comment changeLars Ingebrigtsen2019-10-301-1/+1
| | | | | * lisp/progmodes/sh-script.el (sh-syntax-propertize-function): We want to match "\ " before a comment; not a space character.
* font-lock \ #foo in shell mode more correctlyLars Ingebrigtsen2019-10-301-1/+1
| | | | | | * lisp/progmodes/sh-script.el (sh-syntax-propertize-function): \ #foo isn't a comment -- it's a symbol that starts with a space character (bug#17538).
* Fix "dnl" highlights in m4-modeLars Ingebrigtsen2019-10-301-1/+1
| | | | | | * lisp/progmodes/m4-mode.el (m4-font-lock-keywords): "dnl" comments should override any previous syntax-based highlighting (37132). This makes "dnl foo#bar" be highlighted correctly.
* Add gradle-kotlin to compilation-error-regexp-alist-alistFilipp Gunbin2019-10-291-0/+10
| | | | | | * lisp/progmodes/compile.el: Add gradle-kotlin to compilation-error-regexp-alist-alist. * etc/compilation.txt: Add samples for it.
* Use new-style rx extensions in python.elMattias Engdegård2019-10-281-68/+59
| | | | | | | * lisp/progmodes/python.el (python-rx): Use `rx-let' instead of `rx-constituents'. This allows for some slight redundancy reduction, since `rx-let' definitions are expanded inside `not' (bug#37849). Reorder some `or' forms for more efficient matching.
* Remove obsolete doc references to XEmacs (Bug#37899)Stefan Kangas2019-10-281-10/+3
| | | | | | | | | | | | | | | | | * doc/misc/edt.texi (Changes, Goals): * doc/misc/emacs-mime.texi (Charset Translation): * doc/misc/gnus-faq.texi (FAQ 4-15): * doc/misc/pcl-cvs.texi (Bugs): * doc/misc/srecode.texi (SRecode Minor Mode): * lisp/cedet/srecode/insert.el (srecode-insert-ask-variable-method): * lisp/follow.el: * lisp/leim/quail/ipa.el (ipa-x-sampa, ipa-kirshenbaum): * lisp/net/newsticker.el: * lisp/obsolete/iswitchb.el: * lisp/progmodes/hideshow.el: * lisp/savehist.el (savehist-file): * lisp/vc/ediff.el: Remove obsolete references to XEmacs in doc strings and comments.
* CC Mode: Fix positioning of point whilst inserting comments without non-wsAlan Mackenzie2019-10-251-9/+18
| | | | | | | | | * lisp/progmodes/cc-cmds.el (c-guess-fill-prefix): When determining a new block comment prefix (i.e. there isn't one already there to copy), and that prefix is hard up against a comment closer, ensure there are at least two spaces before the closer. (c-indent-new-comment-line): Amend the strategy for ensuring that point isn't left hard up against the comment closer after M-j.
* Avoid extra lines in python-shell font lock buffer (Bug#33959)memeplex2019-10-221-12/+13
| | | | | | * lisp/progmodes/python.el (python-shell-font-lock-comint-output-filter-function): Avoid writing a newline to the font lock buffer when receiving an empty string.
* Avoid false indications from Flymake in .dir-locals.el filesEli Zaretskii2019-10-211-2/+14
| | | | | | | * lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Don't install 'elisp-flymake-checkdoc' and 'elisp-flymake-byte-compile' hooks for .dir-locals.el files. Reported by Clément Pit-Claudel <cpitclaudel@gmail.com>.
* Remove XEmacs compat code from meta-mode.elStefan Kangas2019-10-201-9/+3
| | | | | * lisp/progmodes/meta-mode.el (meta-mode-menu): (meta-mode-load-hook): Remove XEmacs compat code.
* Optimize c-crosses-statement-barrier-p for large blocks of comment.Alan Mackenzie2019-10-201-1/+5
| | | | | | | | This fixes bug #18134. * lisp/progmodes/cc-engine.el (c-crosses-statement-barrier-p): Give a limit to the c-backward-syntactic-ws which is searching for a virtual semicolon. In the main loop, Use c-forward-syntactic-ws to skip blocks of comments.
* In xref-location-marker, handle deleted file or outdated xref location nicelyStephen Leake2019-10-201-2/+7
| | | | * lisp/progmodes/xref.el (xref-location-marker): Add ignore-errors.
* lisp/*.el: Fix typos and improve some docstringsJuanma Barranquero2019-10-204-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/auth-source.el (auth-source-backend-parse-parameters) (auth-source-search-collection) (auth-source-secrets-listify-pattern) (auth-source--decode-octal-string, auth-source-plstore-search): * lisp/registry.el (registry-lookup) (registry-lookup-breaks-before-lexbind) (registry-lookup-secondary, registry-lookup-secondary-value) (registry-search, registry-delete, registry-size, registry-full) (registry-insert, registry-reindex, registry-prune) (registry-collect-prune-candidates): * lisp/subr.el (nbutlast, process-live-p): * lisp/tab-bar.el (tab-bar-list): * lisp/cedet/ede/linux.el (ede-linux--get-archs) (ede-linux--include-path, ede-linux-load): * lisp/erc/erc-log.el (erc-log-all-but-server-buffers): * lisp/erc/erc-pcomplete.el (pcomplete-erc-commands) (pcomplete-erc-ops, pcomplete-erc-not-ops, pcomplete-erc-nicks) (pcomplete-erc-all-nicks, pcomplete-erc-channels) (pcomplete-erc-command-name, pcomplete-erc-parse-arguments): * lisp/eshell/em-term.el (eshell-visual-command-p): * lisp/gnus/gnus-cache.el (gnus-cache-fully-p): * lisp/gnus/nnmail.el (nnmail-get-active) (nnmail-fancy-expiry-target): * lisp/mail/mail-utils.el (mail-string-delete): * lisp/mail/supercite.el (sc-hdr, sc-valid-index-p): * lisp/net/ange-ftp.el (ange-ftp-use-smart-gateway-p): * lisp/net/nsm.el (nsm-save-fingerprint-maybe) (nsm-network-same-subnet, nsm-should-check): * lisp/net/rcirc.el (rcirc-looking-at-input): * lisp/net/tramp-cache.el (tramp-get-hash-table): * lisp/net/tramp-compat.el (tramp-compat-process-running-p): * lisp/net/tramp-smb.el (tramp-smb-get-share) (tramp-smb-get-localname, tramp-smb-read-file-entry) (tramp-smb-get-cifs-capabilities, tramp-smb-get-stat-capability): * lisp/net/zeroconf.el (zeroconf-list-service-names) (zeroconf-list-service-types, zeroconf-list-services) (zeroconf-get-host, zeroconf-get-domain) (zeroconf-get-host-domain): * lisp/nxml/rng-xsd.el (rng-xsd-compile) (rng-xsd-make-date-time-regexp, rng-xsd-convert-date-time): * lisp/obsolete/erc-hecomplete.el (erc-hecomplete) (erc-command-list, erc-complete-at-prompt): * lisp/org/ob-scheme.el (org-babel-scheme-get-buffer-impl): * lisp/org/ob-shell.el (org-babel--variable-assignments:sh-generic) (org-babel--variable-assignments:bash_array) (org-babel--variable-assignments:bash_assoc) (org-babel--variable-assignments:bash): * lisp/org/org-clock.el (org-day-of-week): * lisp/progmodes/cperl-mode.el (cperl-char-ends-sub-keyword-p): * lisp/progmodes/gud.el (gud-find-c-expr, gud-innermost-expr) (gud-prev-expr, gud-next-expr): * lisp/textmodes/table.el (table--at-cell-p, table--probe-cell) (table--get-cell-justify-property) (table--get-cell-valign-property) (table--put-cell-justify-property) (table--put-cell-valign-property): Fix typos. * lisp/so-long.el (fboundp): Doc fix. (so-long-mode-line-info, so-long-mode) (so-long--check-header-modes): Fix typos. * lisp/emulation/viper-mous.el (viper-surrounding-word) (viper-mouse-click-get-word): Fix typos. (viper-mouse-click-search-word): Doc fix. * lisp/erc/erc-backend.el (erc-forward-word, erc-word-at-arg-p) (erc-bounds-of-word-at-point): Fix typos. (erc-decode-string-from-target, define-erc-response-handler): Refill docstring. * lisp/erc/erc-dcc.el (pcomplete/erc-mode/DCC): Fix typo. (erc-dcc-get-host, erc-dcc-auto-mask-p, erc-dcc-get-file): Doc fixes. * lisp/erc/erc-networks.el (erc-network-name): Fix typo. (erc-determine-network): Refill docstring. * lisp/net/dbus.el (dbus-list-hash-table) (dbus-string-to-byte-array, dbus-byte-array-to-string) (dbus-check-event): Fix typos. (dbus-introspect-get-property): Doc fix. * lisp/net/tramp-adb.el (tramp-adb-file-name-handler): Rename ARGS to ARGUMENTS. Doc fix. (tramp-adb-sh-fix-ls-output, tramp-adb-execute-adb-command) (tramp-adb-find-test-command): Fix typos. * lisp/net/tramp.el (tramp-set-completion-function) (tramp-get-completion-function) (tramp-completion-dissect-file-name) (tramp-completion-dissect-file-name1) (tramp-get-completion-methods, tramp-get-completion-user-host) (tramp-get-inode, tramp-get-device, tramp-mode-string-to-int) (tramp-call-process, tramp-call-process-region) (tramp-process-lines): Fix typos. (tramp-interrupt-process): Doc fix. * lisp/org/ob-core.el (org-babel-named-src-block-regexp-for-name) (org-babel-named-data-regexp-for-name): Doc fix. (org-babel-src-block-names, org-babel-result-names): Fix typos. * lisp/progmodes/inf-lisp.el (lisp-input-filter): Doc fix. (lisp-fn-called-at-pt): Fix typo. * lisp/progmodes/xref.el (xref-backend-identifier-at-point): Doc fix. (xref-backend-identifier-completion-table): Fix typo.
* Remove some compat code from cperl-mode.elLars Ingebrigtsen2019-10-191-88/+24
| | | | * lisp/progmodes/cperl-mode.el: Remove old-Emacs compat code.
* Remove XEmacs compat code from tcl.elStefan Kangas2019-10-171-18/+3
| | | | | * lisp/progmodes/tcl.el (tcl-mode): Remove XEmacs compat code. (tcl-popup-menu): Declare obsolete.
* lisp/*.el, src/*.c: Doc fixes related to returning t vs non-nilJuanma Barranquero2019-10-173-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/flymake-proc.el (flymake-proc--find-buffer-for-file): Doc fix; return value is a buffer, not t. * lisp/progmodes/ebrowse.el (ebrowse-member-display-p): Doc fix; return value is the MEMBER argument, not nil. * lisp/files.el (hack-one-local-variable-eval-safep): * lisp/play/doctor.el (doctor-nounp, doctor-pronounp): * lisp/progmodes/flymake-proc.el (flymake-proc--check-include): * lisp/progmodes/js.el (js--broken-arrow-terminates-line-p): Doc fix; a non-nil return value is not always t. * lisp/image.el (image-type-available-p): * lisp/simple.el (region-active-p): * lisp/window.el (frame-root-window-p): * src/buffer.c (Fbuffer_live_p): * src/image.c (Finit_image_library): * src/window.c (Fwindow_minibuffer_p): Doc fix; a non-nil return value is always t. * doc/lispref/minibuf.texi (Minibuffer Windows): Doc fix.
* lisp/*.el: Force non-nil result to t, to match docstringJuanma Barranquero2019-10-172-2/+2
| | | | | | | | | | | | | * lisp/emacs-lock.el (emacs-lock-live-process-p): * lisp/shadowfile.el (shadow-file-match): * lisp/emacs-lisp/edebug.el (edebug-basic-spec): * lisp/mail/rmail.el (rmail-expunge-confirmed): * lisp/net/soap-client.el (soap-should-encode-value-for-xs-element): * lisp/progmodes/idlwave.el (idlwave-quoted): * lisp/progmodes/idlw-shell.el (idlwave-shell-filename-string): * lisp/textmodes/refbib.el (r2b-isa-proceedings): * lisp/textmodes/texnfo-upd.el (texinfo-find-lower-level-node): Normalize boolean result.
* Expand <<- heredocs in shLars Ingebrigtsen2019-10-161-2/+4
| | | | | * lisp/progmodes/sh-script.el (sh--maybe-here-document): Make <<- expansion work, too.
* Tweak heredoc expansion in shell-script-modeLars Ingebrigtsen2019-10-161-20/+22
| | | | | * lisp/progmodes/sh-script.el (sh--maybe-here-document): Allow expanding <<E, too.
* Fix python-shell font-lock cleanup for unclosed quotes (Bug#32390)Carlos Pita2019-10-141-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem originating this report was: ------------- In [15]: " File "<ipython-input-15-3b7a06bb1102>", line 1 " ^ SyntaxError: EOL while scanning string literal In [16]: string face still here" ------------- This happens because python-shell-font-lock-comint-output-filter-function is called twice, first for the error output and then for the "In [16]: " part. The first time python-shell-comint-end-of-output-p returns nil since we're *not* at the end of an input prompt. The second time it returns 0 since we're at the end of *just* an input prompt. So we don't call python-shell-font-lock-cleanup-buffer either time. The current code is relying in a very weak rule: it considers "just an input prompt" to be a continuation prompt. Another unreliable aspect of the current rule is that sometimes (python-shell-comint-end-of-output-p (ansi-color-filter-apply output)) returns 1 and not 0 for continuation prompts. In short, the rule does a very poor job identifying continuations. * lisp/progmodes/python.el (python-shell-font-lock-cleanup-buffer): Don't check for empty OUTPUT since python-shell-comint-end-of-output-p returns nil for that anyway. Don't check for python-shell-comint-end-of-output-p returning a specific number because it's unreliable, just check for any non-nil. Identify continuation prompts by looking for "...".
* lisp/*.el: Force non-nil result to t, to match docstringJuanma Barranquero2019-10-141-2/+1
| | | | | | | | | | | | | | * lisp/ido.el (ido-ignore-item-p): * lisp/simple.el (use-region-p): * lisp/whitespace.el (whitespace-style-face-p) (whitespace-style-mark-p): * lisp/calendar/cal-islam.el (calendar-islamic-leap-year-p): * lisp/mail/rmail.el (rmail-is-text-p): * lisp/mh-e/mh-alias.el (mh-alias-for-from-p): * lisp/net/imap.el (imap-message-flag-permanent-p): * lisp/progmodes/tcl.el (tcl-real-comment-p): * lisp/textmodes/table.el (table--point-in-cell-p): Normalize boolean result.
* Fix hitting RET on some text in compilation-modeLars Ingebrigtsen2019-10-131-3/+9
| | | | | | | * lisp/progmodes/compile.el (compilation-next-error-function): Don't bug out with an incomprehensible error message on "make[2]:" texts (bug#5316). (compilation-find-file): Protect against there being no file name.
* In compilation-tear-down-arrow-spec-in-margin, test compilation-arrow-overlayAlan Mackenzie2019-10-131-4/+5
| | | | | | * lisp/progmodes/compile.el (compilation-tear-down-arrow-spec-in-margin): Make sure compilation-arrow-overlay is an overlay before performing overlay operations on it. This fixes bug #37733.
* TCL indentation fix outside functionsRolf Ade2019-10-131-3/+8
| | | | | | | * lisp/progmodes/tcl.el (tcl-calculate-indent): Indent code correctly outside of function definitions (bug#23565). Copyright-paperwork-exempt: yes
* Use quit-window in some functionsAndreas Politz2019-10-132-4/+4
| | | | | | | | | * lisp/strokes.el: * lisp/startup.el (fancy-startup-tail): * lisp/progmodes/verilog-mode.el (verilog-complete-word) (verilog-show-completions): * lisp/progmodes/idlwave.el (idlwave-quit-help): Use `quit-window' (bug#24213).
* Fix compilation-transform-file-match-alist failureLars Ingebrigtsen2019-10-121-12/+13
| | | | | | * lisp/progmodes/compile.el (compilation-error-properties): Fix thinko in compilation-transform-file-match-alist feature -- `file' isn't a list of files after all.
* ; Improve a doc string in etags.elEli Zaretskii2019-10-121-4/+9
| | | | | * lisp/progmodes/etags.el (tags-complete-tags-table-file): Improve the doc string. (Bug#37538)
* CC-Mode: Remove unneeded backslashes from doc strings and regular expressionsAlan Mackenzie2019-10-127-36/+37
| | | | | | | | | | | | | | | Also make miscellaneous amendments. * lisp/progmodes/cc-align.el, lisp/progmodes/cc-cmds.el * lisp/progmodes/cc-defs.el, lisp/progmodes/cc-engine.el * lisp/progmodes/cc-langs.el, lisp/progmodes/cc-vars.el: Remove lots of unneeded backslashes. * lisp/progmodes/cc-langs.el (c-string-innards-re-alist): Remove redundant "\\|\r" from regular expression. * lisp/progmodes/cc-mode.el (c-make-mode-syntax-table): Correct the name of the hook normal-erase-is-backspace-MODE-hook from a non-existant hook name.
* ; * lisp/progmodes/grep.el (lgrep, rgrep, zrgrep): Fix doc wording.Eli Zaretskii2019-10-121-3/+3
|