aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | Allow tempo-define-template to reassign tags to new templatesFederico Tedin2020-02-213-8/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/tempo.el (tempo-define-template): Update documentation string to mention that existing tags can be reassigned new templates. (tempo-add-tag): Allow reassigning tags to new templates. Additionally, invalidate tag collections in all buffers if the global tags list is being modified. (tempo-invalidate-collection): Allow invalidating tag collections in all buffers at the same time. * test/lisp/tempo-tests.el (tempo-define-tag-globally-test): Add a test to check that new templates plus tags can be defined from any buffer and then immediately used in other buffers. (tempo-overwrite-tag-test): Add a test to check that tags can be reassigned templates. * etc/NEWS: Announce changes in tempo.el. (Bug#39555)
* | Less bad permutation generator in regexp-opt testMattias Engdegård2020-02-201-21/+8
| | | | | | | | | | | | * test/lisp/emacs-lisp/regexp-opt-tests.el (regexp-opt-test--permutation, regexp-opt-test--factorial): Remove. (regexp-opt-test--permutations): Rewrite.
* | Merge from origin/emacs-27Glenn Morris2020-02-2010-62/+72848
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | 9f08524748 (origin/emacs-27) Fix broken regexps 1d10885763 ; spelling and comment fix 614203bc80 ; make change-history-commit 28399e585e * Makefile.in (PREFERRED_BRANCH): Now emacs-27. 62afbc513a Fix bug when visiting euc-jp-encoded directories a2c4eeeecd Clarify when fixnums are used. 4e5ac4b0c6 Reorder discussion of integer basics f765aad28b Make OMake support slightly less expensive (bug#39595) 39410cfc5a Speed up 'msft' and 'watcom' compilation error regexps 96a269d045 Speed up 'maven' compilation error message regexp efc9d4fe3e Amend c-backward-sws better to handle multiline block comm...
| * Fix broken regexpsMattias Engdegård2020-02-202-2/+2
| | | | | | | | | | | | | | | | | | | | 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.
| * ; spelling and comment fixPaul Eggert2020-02-191-2/+2
| |
| * ; make change-history-commitPaul Eggert2020-02-191-1/+72732
| |
| * * Makefile.in (PREFERRED_BRANCH): Now emacs-27.Paul Eggert2020-02-191-1/+1
| |
| * Fix bug when visiting euc-jp-encoded directoriesPaul Eggert2020-02-191-1/+1
| | | | | | | | | | | | | | | | Problem reported by Ken Sasaki (Bug#39672). * src/fileio.c (Ffile_directory_p): Encode filename before giving it to file_directory_p. This fixes a typo introduced in 2019-09-18T02:18:14Z!eggert@cs.ucla.edu.
| * Clarify when fixnums are used.Paul Eggert2020-02-171-2/+2
| | | | | | | | | | * doc/lispref/numbers.texi (Integer Basics): Clarify. Based on a suggestion by Noam Postavsky (Bug#39557#32).
| * Reorder discussion of integer basicsPaul Eggert2020-02-171-37/+40
| | | | | | | | | | * doc/lispref/numbers.texi (Integer Basics): Put the fixnum/bignum discussion at the end of the section, not at the start (Bug#39557).
| * Make OMake support slightly less expensive (bug#39595)Mattias Engdegård2020-02-173-4/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-171-2/+2
| | | | | | | | | | | | | | | | | | 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-173-5/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-161-8/+27
| | | | | | | | | | | | | | | | 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.
* | Remove subsumed repetitions in regexpsMattias Engdegård2020-02-2023-37/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make regexps smaller and faster by removing terms that are superfluous by virtue of standing next to another term that matches more. See https://lists.gnu.org/archive/html/emacs-devel/2020-01/msg00949.html for details. * lisp/bs.el (bs--make-header-match-string): * lisp/gnus/deuglify.el (gnus-outlook-repair-attribution-block): * lisp/gnus/message.el (message-subject-trailing-was-ask-regexp) (message-subject-trailing-was-regexp): * lisp/informat.el (Info-validate): * lisp/net/browse-url.el (browse-url-button-regexp): * lisp/net/rcirc.el (rcirc-url-regexp): * lisp/org/ob-core.el (org-babel-remove-result): * lisp/org/ob-fortran.el (org-babel-fortran-ensure-main-wrap): * lisp/org/org-capture.el (org-capture-set-target-location): * lisp/org/org-table.el (org-table-expand-lhs-ranges): * lisp/org/org.el (org-maybe-keyword-time-regexp, org-ts-regexp) (org-ts-regexp-inactive, org-ts-regexp-both): * lisp/play/gametree.el (gametree-hack-file-layout): * lisp/progmodes/cc-mode.el (c-Java-defun-prompt-regexp): * lisp/progmodes/idlw-shell.el (idlwave-shell-halting-error): * lisp/progmodes/ruby-mode.el (ruby-mode-set-encoding): * lisp/progmodes/verilog-mode.el (verilog-error-font-lock-keywords) (verilog-verilint-off, verilog-case-indent-level) (verilog-within-translate-off, verilog-start-translate-off) (verilog-back-to-start-translate-off, verilog-end-translate-off) (verilog-expand-dirnames): * lisp/term.el (term-control-seq-regexp): * lisp/textmodes/reftex-vars.el (featurep): * lisp/url/url-gw.el (url-open-telnet): * lisp/vc/ediff-ptch.el (ediff-context-diff-label-regexp): * lisp/vc/pcvs-parse.el (cvs-parse-status): * test/src/regex-emacs-tests.el (regex-tests-PCRE): Remove subsumed repetitions. * lisp/progmodes/sh-script.el (sh-syntax-propertize-function): Simplify repetition of a repetition.
* | Add and remove backslashes in regexpsMattias Engdegård2020-02-2017-25/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These irregularities were found by relint; see https://lists.gnu.org/archive/html/emacs-devel/2020-01/msg00949.html . * doc/lispref/modes.texi (Example Major Modes): * etc/srecode/el.srt: * lisp/cedet/data-debug.el (data-debug-mode): * lisp/cedet/semantic/grammar.el (semantic-grammar-mode): * lisp/cedet/srecode/srt-mode.el (srecode-template-mode): * lisp/comint.el (comint--unquote&requote-argument): * lisp/emacs-lisp/lisp-mode.el (lisp-mode): * lisp/gnus/mm-uu.el (mm-uu-type-alist): * lisp/progmodes/cc-awk.el (c-awk-harmless-pattern-characters*): * lisp/progmodes/cfengine.el (cfengine-common-settings): * lisp/progmodes/cperl-mode.el (cperl-after-sub-regexp, cperl-init-faces): * lisp/shell.el (shell-chdrive-regexp, shell--unquote&requote-argument): * lisp/textmodes/tex-mode.el (tex-common-initialization): Remove duplicated backslashes in character alternatives. * lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2): * lisp/progmodes/opascal.el (opascal--syntax-propertize): * lisp/progmodes/pascal.el (pascal--syntax-propertize): Remove backslashes escaping non-special characters. * lisp/progmodes/fortran.el (fortran-font-lock-keywords-3): Escape '*'. * lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Escape '^'.
* | Remove Emacs 20 bug workaround in ebnf2ps (bug#39663)Mattias Engdegård2020-02-207-52/+23
| | | | | | | | | | * lisp/progmodes/ebnf2ps.el (ebnf-range-regexp): Remove. All calls replaced with a string equivalent to the returned value.
* | shr comment typo fixLars Ingebrigtsen2020-02-201-1/+1
| | | | | | | | * lisp/net/shr.el (shr-parse-base): Comment typo fix.
* | Fix problem with degenerate <html base="."> specs in shrLars Ingebrigtsen2020-02-201-2/+9
| | | | | | | | | | * lisp/url/url-expand.el (url-expand-file-name): Don't bug out on degenerate base/expander pairs (bug#39235).
* | Fix <button>...</button> submit button rendering in ewwLars Ingebrigtsen2020-02-201-5/+7
| | | | | | | | | | | | * lisp/net/eww.el (eww-form-submit): Use the contents of the <button>...</button> for the string if there is no value (bug#39326).
* | Introduce face for <code> elements in shrKévin Le Gouguec2020-02-201-1/+1
| | | | | | | | | | | | * lisp/net/shr.el (shr-tag-code): Don't use the `default' font, because it has properties that will override surrounding elements (like <a...>) (bug#39504).
* | Fix some file-modes racesPaul Eggert2020-02-195-27/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/gnus-start.el (gnus-save-newsrc-file) (gnus-slave-save-newsrc): * lisp/gnus/gnus-uu.el (gnus-uu-initialize): * lisp/gnus/mm-archive.el (mm-dissect-archive): * lisp/gnus/mm-decode.el (mm-temp-files-delete) (mm-display-external): * lisp/image-dired.el (image-dired-create-thumb-1): Use with-file-modes rather than setting the file modes later. This fixes some race conditions where the file temporarily has the wrong permissions.
* | Fix search for ~/.Xdefaults-HOSTNAME (again)Johan Bockgård2020-02-191-1/+1
| | | | | | | | | | * src/xrdb.c (get_environ_db): Fix typo when handling ~/.Xdefaults-HOSTNAME.
* | Fix conversion of text/html->multipart/relatedJeremy Compostella2020-02-191-5/+14
| | | | | | | | | | | | | | * lisp/gnus/mml.el (mml-expand-all-html-into-multipart-related): New function (bug#39230). (mml-generate-mime): Use it to expand all HTML parts, no matter where in the MIME tree.
* | Fix working text related issues on NS (Bug#38851)Masahiro Nakamura2020-02-192-8/+16
| | | | | | | | | | | | | | | | | | | | | | * src/keyboard.c (read_char): Prevent redsiplay right after ns-unput-working-text event. * src/nsterm.m ([EmacsView insertText:]): Partially revert commit ba04217. ([EmacsView firstRectForCharacterRange:]): Fix candidate window position when cursor is on echoarea. ([EmacsView mouseDown:]) ([EmacsView windowDidResignKey:]): Don't delete working text.
* | Fix horizontal bit shiftingAlan Third2020-02-191-3/+4
| | | | | | | | | | | | * src/nsterm.m ([EmacsView copyRect:to:]): Calculate the horizontal difference instead of just the vertical. ([EmacsView updateLayer]): Fix NSTRACE message.
* | * doc/misc/texinfo.tex: Update from Gnulib.Paul Eggert2020-02-181-19/+13
| |
* | Support state changing VC operations in dired-mode on files (bug#34949)Juri Linkov2020-02-193-8/+35
| | | | | | | | | | | | | | | | | | | | * lisp/vc/vc.el (vc-deduce-fileset): Don't error out when observer is nil. (vc-dired-deduce-fileset): Add optional args 'state-model-only-files' and 'observer'. Check that all files are in a consistent state when state-model-only-files is non-nil. Error out on directories. * lisp/vc/vc-dispatcher.el (vc-dispatcher-browsing): Check dired-mode for derived-mode-p.
* | * lisp/wdired.el (wdired-next-line, wdired-previous-line): Preserve columnStefan Monnier2020-02-181-0/+2
| |
* | Avoid unlikely load-average bugPaul Eggert2020-02-171-1/+1
| | | | | | | | | | * src/fns.c (Fload_average): Do not crash or return nonsense if the load average exceeds most-positive-fixnum/100 (Bug#39577).
* | Improve C-h C-h bug fixPaul Eggert2020-02-161-4/+7
| | | | | | | | | | | | * src/lread.c (read1): Guard against two 'struct Lisp_Vector *' pointers differing only in their most significant bit. Problem reported by Pip Cet (Bug#39529#22).
* | * src/lread.c (read1): Fix int/Lisp_Object mix up.Glenn Morris2020-02-161-1/+1
| | | | | | | | Found by --enable-check-lisp-object-type.
* | Merge from origin/emacs-27Glenn Morris2020-02-1613-181/+104
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7ceb45f61f (origin/emacs-27) Reformulate c-end-of-macro, handling mul... 888ffd960c Fix unexec failure on macOS 10.15.4 b392c9f365 Fix 'reverse-region' when less than one line is in region 7448834f73 Correct default regexp in 'package-menu-hide-package' faada7ca42 Remove obsolete menu entry "Redisplay buffer" 78d76cd93c Remove redundant 'msft' compilation error rule (bug#39595) 75a9eee8b8 ; * src/editfns.c (Fbuffer_size): Tiny clarification. 4d8d25d641 * doc/lispref/variables.texi (special-variable-p): Clarify... 9f6a4bbcc9 Remove the optional KEEP-ORDER argument to regexp-opt d1e8ce8bb6 Make after-change-functions called from call-process get t... # Conflicts: # etc/NEWS
| * Reformulate c-end-of-macro, handling multiline block comments betterAlan Mackenzie2020-02-162-56/+38
| | | | | | | | | | | | | | | | | | | | * 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 unexec failure on macOS 10.15.4YAMAMOTO Mitsuharu2020-02-161-23/+24
| | | | | | | | | | * src/unexmacosx.c (unexec_regions_merge): Align region start addresses to page boundaries and then merge regions.
| * Fix 'reverse-region' when less than one line is in regionEli Zaretskii2020-02-151-5/+12
| | | | | | | | | | | | | | * 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-151-1/+2
| | | | | | | | | | | | * 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-151-2/+1
| | | | | | | | | | | | | | | | * 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-141-7/+0
| | | | | | | | | | | | | | | | 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.
| * ; * src/editfns.c (Fbuffer_size): Tiny clarification.Philipp Stephani2020-02-131-1/+1
| |
| * * doc/lispref/variables.texi (special-variable-p): Clarify limitsStefan Monnier2020-02-131-0/+4
| |
| * Remove the optional KEEP-ORDER argument to regexp-optMattias Engdegård2020-02-134-84/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Make after-change-functions called from call-process get the correct BEGAlan Mackenzie2020-02-131-2/+3
| | | | | | | | | | | | | | This fixes bug #39585. * src/callproc.c (call_process): Supply the correct CHARPOS to signal_after_change (twice).
* | Fix C-h C-h bug due to mutating a hash keyPaul Eggert2020-02-151-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | Problem reported by Federico Tedin (Bug#39529). The problem was that dumping uses a hash table based on 'equal' when purecopying compiled objects, but then modifies the compiled objects while they are keys in the table. This no-no was uncovered by the sxhash fixes in 2020-01-07T19:23:11Z!eggert@cs.ucla.edu. Eli Zaretski pinpointed the patch that triggered the bug. * src/lread.c (read1): When reading a compiled object, replace its docstring with a unique negative integer instead of with 0, so that purecopy doesn’t unify it with some other compiled object that happens to have the same Lisp code.
* | Remove another test for deleted lread featureGlenn Morris2020-02-151-11/+0
| | | | | | | | | | * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--old-style-backquotes): Remove.
* | ; * etc/NEWS: Fix wording in a recently added entry.Eli Zaretskii2020-02-151-1/+1
| |
* | Fix typosMark Oteiza2020-02-141-2/+2
| | | | | | | | * src/lcms.c (lcms-xyz->jch, lcms-jch->xyz): Swap first line of docstrings.
* | * etc/NEWS: Improve last changeStefan Monnier2020-02-141-1/+2
| |
* | When searching a topic in Gnus, search all topic's groupsEric Abrahamsen2020-02-141-1/+2
| | | | | | | | | | | | | | | | Bug#39515 * lisp/gnus/nnir.el (gnus-group-make-nnir-group): Bring the code in line with the documentation, which says that all topic groups will be searched, even if they're not visible.
* | Remove lread tests for a feature that was deletedGlenn Morris2020-02-141-16/+0
| | | | | | | | | | * test/src/lread-tests.el (lread-tests--old-style-backquotes) (lread-tests--force-new-style-backquotes): Remove.