summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAge
* ; Update lisp/ldefs-boot.elemacs-27.0.90Nicolas Petton2020-02-29
|
* Fix rx charset generationMattias Engdegård2020-02-29
| | | | | | * lisp/emacs-lisp/rx.el (rx--charset-p): Don't overquote. (rx--generate-alt): Generate '.' for negated newline. * test/lisp/emacs-lisp/rx-tests.el (rx-any, rx-charset-or): Test.
* Merge branch 'emacs-27' of git.savannah.gnu.org:/srv/git/emacs into emacs-27Eli Zaretskii2020-02-29
|\
| * Fix overquoting in mule.elMattias Engdegård2020-02-28
| | | | | | | | | | * lisp/international/mule.el (sgml-xml-auto-coding-function): Remove accidental quote.
* | Merge branch 'emacs-27' of git.savannah.gnu.org:/srv/git/emacs into emacs-27Eli Zaretskii2020-02-28
|\|
| * * lisp/vc/vc-cvs.el (vc-cvs-ignore): Copy-edit doc stringMattias Engdegård2020-02-28
| |
* | ; bug#39779: Fix some typos in documentation.Štěpán Němec2020-02-28
|/
* checkdoc: Don't mistake "cf." for sentence endŠtěpán Němec2020-02-28
| | | | | * lisp/emacs-lisp/checkdoc.el (checkdoc-sentencespace-region-engine): Recognize "cf." as an abbreviation, not a sentence end.
* vc-dir-ignore: More accurately choose base directoryDmitry Gutov2020-02-25
| | | | | | | | * lisp/vc/vc-dir.el: (vc-dir-ignore): Use it (bug#37189). * lisp/vc/vc.el: (vc--ignore-base-dir): Extract from vc-ignore.
* * lisp/emacs-lisp/cursor-sensor.el (cursor-sensor--detect): Change last fixStefan Monnier2020-02-24
| | | | Make sure we always work in the selected-window's buffer.
* CC Mode: Protect against consecutive calls to before-change-functions ...Alan Mackenzie2020-02-23
| | | | | | | | | | | without an intervening call to after-change-functions. This would have been a workaround to bug #38691 had the causes of that bug not been removed. * lisp/progmodes/cc-mode.el (c-just-done-before-change): Add an extra value to this variable, 'whole-buffer, this being set by c-before-change as a signal to c-after-change that although c-before-change has run, it has assumed the entire buffer as the change region. (c-before-change, c-after-change): Adapt to the new meaning of the above.
* Shorten some ppss struct field namesNoam Postavsky2020-02-23
| | | | | | | | | * lisp/emacs-lisp/syntax.el (ppss): Capitalize docstrings. (ppss-comment-depth): Renamed from ppss-comment-nesting. (ppss-quoted-p): Renamed from ppss-after-quote-p. (ppss-min-depth): Renamed from ppss-minimum-paren-depth. (ppss-open-parens): Renamed from ppss-open-paren-positions. * etc/NEWS: Announce the ppss-* accessors.
* Java Mode: Fix fontification of variable decl inside `for'Alan Mackenzie2020-02-23
| | | | | * lisp/progmodes/cc-engine.el (c-forward-declarator): In place of a test for C++ Mode, test for either C++ Mode or Java Mode.
* CC Mode: Fontify foo in "const auto foo :" correctlyAlan Mackenzie2020-02-23
| | | | | | | | * lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): While attempting to find a declaration's identifier, recast the latest found id. as that identifier when there is no other type identifier and the result of the most recent c-forward-type call is 'maybe or 'found. In the latter case, remove the id. from the found types list, too.
* * lisp/replace.el (occur-engine-line): Revert part of fb16313025 (bug#39597)Juri Linkov2020-02-23
| | | | ; Do not merge to master.
* Move more logic to vc-ignore from vc-default-ignoreDmitry Gutov2020-02-23
| | | | | | | | | | | * lisp/vc/vc-dir.el (vc-dir-ignore): Pass relative file names to vc-ignore. * lisp/vc/vc.el (vc-ignore): Move the responsibility of constructing the ignore pattern (right now, most often a relative file name) using a file name received from the user, here. (vc-default-ignore): ...from here (bug#37189, see discussion). Also clarify the docstring.
* Don't write absolute filenames and duplicate strings to CVS ignore filesWolfgang Scherer2020-02-22
| | | | | | | | | | * lisp/vc/vc-cvs.el (vc-cvs-ignore): Expand filename correctly and pass on only the basename as the pattern. (vc-cvs-append-to-ignore) Do not write duplicate strings to .cvsignore. New optional parameter SORT to more explicitly control sorting of the ignore entries. (Bug#37215) * lisp/vc/pcvs.el (cvs-mode-ignore): Call 'vc-cvs-append-to-ignore' with SORT argument.
* Fix cursor-sensor--detect when current buf != selected window's bufFederico Tedin2020-02-21
| | | | | | * lisp/emacs-lisp/cursor-sensor.el (cursor-sensor--detect): Avoid trying to read text properties from position taken from another buffer. (Bug#38740)
* Skip shell prompt on current line in Eshell even if it's protectedSteven Allen2020-02-21
| | | | | | | | | | When the eshell prompt is protected (e.g., with rear non-sticky, inhibited movements, etc.), 'beginning-of-line' won't move to the actual beginning of the line and therefore won't skip over the prompt. * lisp/eshell/em-prompt.el (eshell-previous-prompt): Use 'forward-line' to go to the beginning of the line, even if it's protected. (Bug#39627)
* Fix broken regexpsMattias Engdegård2020-02-20
| | | | | | | | | | Incorrect escaping prevented these from working as intended. Found by relint. * lisp/progmodes/cc-defs.el (c-search-backward-char-property): Add missing backslash. * lisp/progmodes/simula.el (simula-mode): Remove one backslash too many.
* Make OMake support slightly less expensive (bug#39595)Mattias Engdegård2020-02-17
| | | | | | | | | | | | | | | | | When run with -p or -P, OMake regurgitates error messages that prevented further progress, indented by 6 spaces. Use that fact to ameliorate the modification done to other error message regexps. * lisp/progmodes/compile.el (compilation-parse-errors): When 'omake' is enabled, allow error messages to be indented by 0 or 6 spaces instead of any number of spaces, to avoid pathological behaviour. (compilation-error-regexp-alist-alist): Anchor the 'omake' pattern to bol for performance. Repair the 'ruby-Test::Unit' pattern, which relied on the previously over-generous 'omake' hack. * etc/compilation.txt (OMake): Add examples. * test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data) (compile-test-error-regexps): Add test for OMake (indented error).
* Speed up 'msft' and 'watcom' compilation error regexpsMattias Engdegård2020-02-17
| | | | | | | | | They have similar structure, and both suffer from being able to match leading spaces in multiple ways which leads to bad performance when backtracking (bug#39595). * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Improved 'msft' and 'watcom' regexps.
* Speed up 'maven' compilation error message regexpMattias Engdegård2020-02-17
| | | | | | | | | | | | | Anchor the regexp at line-start to prevent quadratic behaviour when it doesn't match (bug#39595). It's unclear whether the type tag, like [ERROR], is always present; we keep it optional just in case. * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Rewrite 'maven' regexp, using rx for clarity. * etc/compilation.txt (maven): More examples. * test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data): No leading spaces; they seems to stem from a misunderstanding in bug#11517.
* Amend c-backward-sws better to handle multiline block commentsAlan Mackenzie2020-02-16
| | | | | | | | In particular, multiline comments lacking escaped newlines. * lisp/progmodes/cc-engine.el (c-backward-sws): Whilst searching backward for a putative beginning of macro, move back over block comments whose innards lack escaped newlines.
* Reformulate c-end-of-macro, handling multiline block comments betterAlan Mackenzie2020-02-16
| | | | | | | | | | * lisp/progmodes/cc-langs.el (c-last-open-c-comment-start-on-line-re): Comment out. (c-open-c-comment-on-logical-line-re): Remove. * lisp/progmodes/cc-engine.el (c-end-of-macro): Handle multiline block comments lacking escaped newlines using parse-partial-sexp rather than the former variables removed from cc-langs.el.
* Fix 'reverse-region' when less than one line is in regionEli Zaretskii2020-02-15
| | | | | | | * lisp/sort.el (reverse-region): Signal a user-error if the region includes less than one full line, thus avoiding an inadvertent deletion of text following the current line. Fix the doc string. Fix comments to start with a capital letter. (Bug#39376)
* Correct default regexp in 'package-menu-hide-package'Pieter van Oostrum2020-02-15
| | | | | | * lisp/emacs-lisp/package.el (package-menu-mode-menu): Correct default regexp, so it only selects the package at point. (Bug#39436)
* Remove obsolete menu entry "Redisplay buffer"Pieter van Oostrum2020-02-15
| | | | | | | | * lisp/emacs-lisp/package.el (package-menu-mode-menu): Remove obsolete menu entry "Redisplay buffer". (package-menu-mode-menu): Menu entry "Refresh Package List": make the doc string more accurate. (Bug#39436)
* Remove redundant 'msft' compilation error rule (bug#39595)Mattias Engdegård2020-02-14
| | | | | | | | When the 'msft' rule was moved and modified, the old copy was left in place by mistake. * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Remove old rule.
* Remove the optional KEEP-ORDER argument to regexp-optMattias Engdegård2020-02-13
| | | | | | | | | | | | | This argument was added for the 'or' clause in rx, but it turned out to be a bad idea (bug#37659), and there seems to be little other use for it. * lisp/emacs-lisp/regexp-opt.el (regexp-opt): Remove KEEP-ORDER. * doc/lispref/searching.texi (Regexp Functions): * etc/NEWS: Remove it from the documentation. * test/lisp/emacs-lisp/regexp-opt-tests.el (regexp-opt-test--match-all) (regexp-opt-test--check-perm, regexp-opt-test--explain-perm) (regexp-opt-keep-order, regexp-opt-longest-match): Simplify test.
* Fix display of minibuffer prompt in ido.elEli Zaretskii2020-02-12
| | | | | | | | | | | | | | | | | | * lisp/minibuffer.el (minibuffer--message-overlay-pos): New function. (set-minibuffer-message): Use it to determine where to show the overlay with the temporary message. * lisp/ido.el (ido-exhibit): Revert "Render Ido suggestions using an overlay"; this restores the original code which inserted the match-status information into the minibuffer, instead of displaying it in an overlay with an after-string. Put the special 'minibuffer-message' text property at the beginning of the inserted text. (Bug#39379) * etc/NEWS: * doc/lispref/display.texi (Displaying Messages): * doc/lispref/text.texi (Special Properties): Document the 'minibuffer-message' text property and its effect.
* rx: Use longest match for all-string 'or' forms (bug#37659)Mattias Engdegård2020-02-12
| | | | | | | | | | | | | | | | | Revert to the Emacs 26 semantics that always gave the longest match for rx 'or' forms with only string arguments. This guarantee was never well documented, but it is useful and people likely have come to rely on it. For example, prior to this change, (rx (or ">" ">=")) matched ">" even if the text contained ">=". * lisp/emacs-lisp/rx.el (rx--translate-or): Don't tell regexp-opt to preserve the matching order. * doc/lispref/searching.texi (Rx Constructs): Document the longest-match guarantee for all-string 'or' forms. * test/lisp/emacs-lisp/rx-tests.el (rx-or): Update test.
* Make sure not to mark directoriesWolfgang Scherer2020-02-12
| | | | | * lisp/vc/vc-dir.el (vc-dir-mark-all-files): Make sure not to mark directories (bug#37182).
* ; Add a TODODmitry Gutov2020-02-12
|
* vc-hg-dir-status-files: Fix when DIR is not repository rootDmitry Gutov2020-02-12
| | | | | | | * lisp/vc/vc-hg.el (vc-hg-dir-status-files): Make sure it works correctly in a subdirectory of the repo root. Bind default-directory to DIR and add 're: -I .' to the arguments (bug#39380).
* Revert "Fix display of working text on NS (Bug#23412, Bug#1453)"Alan Third2020-02-11
| | | | | | This reverts commit ba042176d8931cdf9441b3b4919ec74b75019494. Do not merge to master (bug#38851)
* c-end-of-macro: Handle block coment lines with unescaped NLs correctlyAlan Mackenzie2020-02-10
| | | | | | | | | * lisp/progmodes/cc-langs.el (c-last-open-c-comment-start-on-line-re): Make obsolete, and supersede by ... (c-open-c-comment-on-logical-line-re): New language variable. * lisp/progmodes/cc-engine.el (c-end-of-macro): Inside macros, handle multiline block comments whose line ends are not escaped correctly.
* Correct "different than" to "different from" where appropriateAlan Mackenzie2020-02-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | (doc/emacs/screen.texi) (doc/lispintro/emacs-lisp-intro.texi) (doc/misc/calc.texi) (doc/misc/gnus.texi) (doc/misc/sc.texi) (lisp/align.el) (lisp/allout-widgets.el) (lisp/allout.el) (lisp/emacs-lisp/gv.el) (lisp/font-lock.el) (lisp/gnus/mm-util.el) (lisp/mail/feedmail.el) (lisp/mail/sendmail.el) (lisp/mail/supercite.el) (lisp/org/org-attach.el) (lisp/progmodes/cc-langs.el) (lisp/progmodes/idlw-shell.el) (lisp/ps-print.el) (lisp/simple.el) (src/cmds.c) (src/editfns.c) (src/frame.h) (src/regex-emacs.c) (src/xfaces.c): Replace "different than" by "different from".
* More accurate documentation of 'package-menu-hide-package'Eli Zaretskii2020-02-08
| | | | | | | | | | * doc/emacs/package.texi (Package Menu): Improve the description of the 'H' command. * lisp/emacs-lisp/package.el (package-menu-mode-menu): More accurate wording of the help-echo string. (package-menu-hide-package): Make the doc string more accurate. (Bug#39436)
* Revert "Signal user-error on duplicate package refresh"Stefan Kangas2020-02-06
| | | | | | | | That commit caused errors when the connection was dropped in the middle of a package refresh. To avoid any further issues this close to the pretest, we simply remove this feature. (Bug#39187) Don't merge to master, where we will instead try to fix the bug.
* Wrap some set-auto-mode calls with delay-mode-hooks (bug#39190)Juri Linkov2020-02-06
| | | | | | | | | * lisp/gnus/mm-view.el (mm-display-inline-fontify): * lisp/vc/diff-mode.el (diff-syntax-fontify-props): * lisp/vc/vc.el (vc-find-revision-no-save): Add delay-mode-hooks around set-auto-mode calls to not run hooks that might assume buffer-file-name really associates buffer with a file.
* Support ido-vertical-mode betterDmitry Gutov2020-02-05
| | | | | * lisp/ido.el (ido-exhibit): Prepend a space to INF if it starts with a newline (bug#39379).
* Fix faces tab-bar and tab-line.Juri Linkov2020-02-05
| | | | | | * lisp/tab-bar.el (tab-bar) <defface>: * lisp/tab-line.el (tab-line) <defface>: Check for min-colors 88 instead of type x.
* Clarify lexvar restrictions for add-to-ordered-list, add-to-historyMattias Engdegård2020-02-02
| | | | | | | | | * lisp/subr.el (add-to-ordered-list, add-to-history): * doc/lispref/lists.texi (List Variables): * doc/lispref/minibuf.texi (Minibuffer History): Note in the doc string and manual that the variable arguments to add-to-ordered-list and add-to-history cannot refer to a lexical variable (bug#39373).
* Replace add-to-list to lexical variable with push (bug#39373)Mattias Engdegård2020-02-01
| | | | | | | | | | | | | | | | | | Since 'add-to-list', being a plain function, cannot access lexical variables, such use must be rewritten for correctness. (Some instances actually do work thanks to a compiler macro, but it's not something code should rely on.) * lisp/autoinsert.el (auto-insert-alist): * lisp/cedet/mode-local.el (mode-local-print-bindings): * lisp/net/tramp-cache.el (tramp-flush-connection-properties) (tramp-list-connections): * lisp/net/zeroconf.el (zeroconf-list-service-names) (zeroconf-list-service-types, zeroconf-list-services): * lisp/org/org.el (org-reload): * lisp/whitespace.el (whitespace-report-region): * test/lisp/emacs-lisp/map-tests.el (test-map-do): Replace add-to-list with push.
* Clarify add-to-list documentation (bug#39373)Mattias Engdegård2020-02-01
| | | | | | | | | While add-to-list often works with lexical variables, this is a hack that isn't always effective; better tell the user not to try. * doc/lispref/lists.texi (List Variables): Add a note about lexical variables to the add-to-list description. Fix the equivalent code. * lisp/subr.el (add-to-list): Amend doc string.
* MH-E: alter content in mh-display-msg, not mh-show-modeStephen Gildea2020-02-01
| | | | | | | * lisp/mh-e/mh-show.el (mh-display-msg, mh-show-mode): buffer-altering code formerly in mh-show-mode is moved to the location in mh-display-msg where mh-show-mode used to be called before the fix to MH-E bug #470 moved the call earlier.
* Update documentation for mh-show-mode-hookStephen Gildea2020-02-01
| | | | | | * lisp/mh-e/mh-e.el, doc/misc/mh-e.texi (mh-show-mode-hook): Now that the fix for MH-E bug #470 calls mh-show-mode-hook earlier, update the documentation to no longer say that the message contents are available.
* Example goto-addr hook: MH-E already uses goto-addressStephen Gildea2020-02-01
| | | | | | * lisp/net/goto-addr.el, doc/emacs/misc.texi: Do not use MH-E as the example of how to add a hook to goto-address, because MH-E calls goto-address internally.
* ; Auto-commit of loaddefs files.Glenn Morris2020-02-01
|