summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Add semicolon to prop-line with lisp-data mode (bug#40573).scratch/add-lisp-data-modeJuri Linkov2020-04-202-2/+2
| | | | | | * lisp/bookmark.el (bookmark-insert-file-format-version-stamp): * lisp/saveplace.el (save-place-alist-to-file): Add semicolon to separate 'coding:' and 'mode:'.
* Don't mess with lisp-mode-variablesJoão Távora2020-04-196-19/+27
| | | | | | | | | | | | | | | | | | | | | * doc/lispref/modes.texi (Example Major Modes): Update example to match reality. * lisp/chistory.el (command-history-mode): Revert previous change. * lisp/help-fns.el (describe-variable): Revert previous change. * lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables): Rvert previous change. (lisp-data-mode): Use full form of lisp-mode-variables for clarity. (lisp-mode): Simplify. * lisp/emacs-lisp/pp.el (pp-to-string): Revert previous change. * lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Case sensitive font-lock keywords. * lisp/progmodes/inf-lisp.el (inferior-lisp-mode): Revert previous change.
* * lisp/files.el (auto-mode-alist): Add more reasonably lisp-data filesJoão Távora2020-04-181-3/+7
|
* lisp-mode-variables uses lisp-mode-syntax-tableJoão Távora2020-04-182-2/+1
| | | | | | | | | All core modes that weren't interested overwrite it anyway for emacs-lisp. And third party usage of this functions (in SLIME/SLY) wants the lisp-mode-syntax-table anyway. * lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables): Use lisp-mode-syntax-table by default.
* * lisp/files.el (auto-mode-alist): Handle .dir-locals-2.el.João Távora2020-04-181-1/+1
|
* Make lisp-mode-variables function less backward-incompatibleJoão Távora2020-04-181-2/+3
| | | | | | | | | | | A small number of third-party packages rely on its arguments. They shouldn't be seriously affected. * doc/lispref/modes.texi (Example Major Modes): Make example closer to reality. * lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables): Ignore any number of arguments.
* Use lisp-data-mode in 5 more placesJoão Távora2020-04-185-5/+8
| | | | | | | | | | | | | | | | | | Thanks to Juri Linkov and Basil L. Contovounesios for the list and the indication of the function that needed to be changed. * lisp/bookmark.el (bookmark-insert-file-format-version-stamp): Use lisp-data-mode. * lisp/saveplace.el (save-place-alist-to-file): Use lisp-data-mode. * lisp/net/eww.el (eww-write-bookmarks): Use lisp-data-mode. * lisp/net/nsm.el (nsm-write-settings): Use lisp-data-mode. * lisp/net/tramp-cache.el (tramp-dump-connection-properties): Use lisp-data-mode.
* Add a lisp-data-mode for editing non-code lisp dataJoão Távora2020-04-187-44/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To provide a cleaner implementation remove arguments from the auxiliary routine lisp-mode-variables. The modes/functions that need to do some something special adjustment do them in their own bodies. * lisp/chistory.el (command-history-mode): Don't pass nil to lisp-mode-variables. * lisp/files.el (auto-mode-alist): Add entry for ".dir-locals". * lisp/help-fns.el (describe-variable): Don't pass useless args to lisp-mode-variables. * lisp/emacs-lisp/pp.el (pp-to-string): Don't pass useless args to lisp-mode-variables. * lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables): Simplify. Always set same variables. (lisp-data-mode): New major mode. (lisp-mode): Inherit from lisp-data-mode. Set special lisp-mode stuff here. * lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Inherit from lisp-data-mode. (emacs-lisp-mode): Simplify. * lisp/progmodes/inf-lisp.el (inferior-lisp-mode): Set the needed syntax table here, not through other function.
* Fix effect-free warning in ob-screen.el while loopBasil L. Contovounesios2020-04-171-1/+1
| | | | | | | | | | | The warning was introduced and detected by an optimizer addition proposed in the following thread: https://lists.gnu.org/archive/html/emacs-devel/2019-12/msg00711.html * lisp/org/ob-screen.el (org-babel-screen-test): Avoid 'value returned from (format "...") is unused' warning by doing something more useful than busy string manipulation while waiting for an asynchronous subprocess to make the temporary file readable.
* Bind 'n' and 'p' to move between symbols in aproposJustin Timmons2020-04-171-0/+19
| | | | | | | * lisp/apropos.el (apropos-next-symbol) (apropos-previous-symbol): New commands. (apropos-mode-map): Bind above commands to 'n' and 'p'. (Bug#20694) * etc/NEWS: Announce the new commands.
* Fix comparing command names in strokes.el (bug#40600)Masahiro Nakamura2020-04-161-3/+1
| | | | | * lisp/strokes.el (strokes-alphabetic-lessp): Simply call string-lessp because the cdr of the argument may be a string.
* Improve regexp in org-table-finish-edit-fieldMattias Engdegård2020-04-161-1/+1
| | | | | * lisp/org/org-table.el (org-table-finish-edit-field): Further improvement of regexp, as suggested by Paul Eggert.
* Ignore D-Bus errors in tramp-gvfs.el (Bug#40655)Michael Albinus2020-04-161-1/+3
| | | | | * lisp/net/tramp-gvfs.el (with-tramp-dbus-call-method): Ignore D-Bus errors. (Bug#40655)
* ; * lisp/files.el (directory-files-no-dot-files-regexp): Arg name.Mattias Engdegård2020-04-161-1/+1
|
* Use directory-files-no-dot-files-regexp wherever possibleMattias Engdegård2020-04-168-16/+20
| | | | | | | | | | | | | | | | Suggested by Paul Eggert. * lisp/files.el (directory-files-no-dot-files-regexp): Clarify semantics and purpose. * lisp/dired.el (dired-re-no-dot): Define as obsolete alias of directory-files-no-dot-files-regexp. (dired-delete-file): * lisp/gnus/gnus-util.el (gnus-delete-directory): * lisp/net/ange-ftp.el (ange-ftp-delete-directory): * lisp/obsolete/vc-arch.el (vc-arch-trim-revlib): * lisp/org/ob-core.el (org-babel-remove-temporary-directory): * lisp/vc/vc-rcs.el (vc-rcs-unregister): Use directory-files-no-dot-files-regexp.
* Quote semanticdb-ebrowse-default-file-name in regexpMattias Engdegård2020-04-161-1/+2
| | | | | | | Noticed by Andreas Schwab. * lisp/cedet/semantic/db-ebrowse.el (semanticdb-load-ebrowse-caches): Quote file name in regexp.
* Fix bugs, inefficiencies and bad style in regexpsMattias Engdegård2020-04-168-14/+17
| | | | | | | | | | | | | | | | | | | | | | | | Found by relint. See discussion at https://lists.gnu.org/archive/html/emacs-devel/2020-04/msg00265.html * lisp/org/org-table.el (org-table-finish-edit-field): * lisp/arc-mode.el (archive-rar-summarize): Avoid wrapped subsumption in repeated sequences. * lisp/erc/erc-dcc.el (erc-dcc-ctcp-query-send-regexp): Replace inefficient repeated empty-matching expression with a plain greedy form. (erc-dcc-handle-ctcp-send): Adjust group numbers. * lisp/net/puny.el (puny-encode-domain): Fix fast-path shortcut pattern so that it actually works as intended. * lisp/progmodes/gdb-mi.el (gdb-control-commands-regexp): * lisp/vc/diff-mode.el (diff-imenu-generic-expression): Remove superfluous backslashes. * lisp/progmodes/scheme.el (scheme-imenu-generic-expression): Correct confused definition-matching pattern which would match more than intended. * lisp/textmodes/sgml-mode.el (sgml-tag-name-re): Avoid inefficient matching by using the fact that the first character cannot match the last char of sgml-name-re.
* Merge from origin/emacs-27Glenn Morris2020-04-1540-96/+125
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a5f7c26907 (origin/emacs-27) * admin/authors.el: Add an author alias. d87a4d1f4e Limit RLIMIT_NOFILE to FD_SETSIZE on macOS e5ca8e5e73 Fix Elisp manual entry on 'set-window-configuration' 485f24223f ; Update ChangeLog.3 8f200254fb ; Update etc/AUTHORS c7adc851ad * admin/authors.el: Add missing author aliases. 4acdd7fe58 Fix edge case errors in filename-matching regexps 5f36e21fe5 Clarify the doc string of 'yank' 13301d4266 New function erc-track-switch-buffer-other-window 38f7538d8f New function erc-switch-to-buffer-other-window # Conflicts: # etc/NEWS
| * Fix edge case errors in filename-matching regexpsMattias Engdegård2020-04-1437-64/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These changes fix actual or latent bugs in regexps that match file names, such as PATTERN arguments to 'directory-files'. See https://lists.gnu.org/archive/html/emacs-devel/2020-04/msg00265.html * admin/authors.el (authors-obsolete-files-regexps) (authors-renamed-files-regexps): * lisp/auth-source-pass.el (auth-source-pass-entries): * lisp/calendar/todo-mode.el (todo-show, todo-find-filtered-items-file) (todo-filter-items, todo-reset-nondiary-marker, todo-reset-done-string) (todo-reset-comment-string, todo-reset-highlight-item): * lisp/cedet/semantic/db-ebrowse.el (semanticdb-load-ebrowse-caches): * lisp/cedet/semantic/texi.el (semantic-texi-associated-files): * lisp/cedet/srecode/map.el (srecode-map-update-map): * lisp/dired.el (dired-re-no-dot): * lisp/emacs-lisp/autoload.el (update-directory-autoloads): * lisp/emacs-lisp/shadow.el (load-path-shadows-find): * lisp/files.el (auto-mode-alist, directory-files-no-dot-files-regexp): * lisp/finder.el (finder-compile-keywords): * lisp/generic-x.el (inetd-conf-generic-mode, named-boot-generic-mode) (resolve-conf-generic-mode, etc-modules-conf-generic-mode): * lisp/gnus/gnus-agent.el (gnus-agent-read-agentview) (gnus-agent-regenerate-group, gnus-agent-update-files-total-fetched-for): * lisp/gnus/gnus-cache.el (gnus-cache-articles-in-group): * lisp/gnus/gnus-score.el (gnus-score-search-global-directories): * lisp/gnus/gnus-util.el (gnus-delete-directory): * lisp/gnus/gnus-uu.el (gnus-uu-dir-files): * lisp/gnus/nndraft.el (nndraft-request-group): * lisp/gnus/nnmh.el (nnmh-request-group, nnmh-request-create-group): (nnmh-request-delete-group, nnmh-active-number, nnmh-update-gnus-unreads): * lisp/gnus/nnspool.el (nnspool-request-group): * lisp/gnus/spam-stat.el (spam-stat-process-directory) (spam-stat-test-directory): * lisp/help-fns.el (help-fns--first-release): * lisp/help.el (view-emacs-news): * lisp/international/quail.el (quail-update-leim-list-file): * lisp/international/titdic-cnv.el (batch-titdic-convert): * lisp/mail/mspools.el (mspools-set-vm-spool-files) (mspools-get-spool-files): * lisp/mail/rmail.el (rmail-secondary-file-regexp) (rmail-speedbar-match-folder-regexp): * lisp/net/ange-ftp.el (ange-ftp-delete-directory): * lisp/net/tramp.el (tramp-use-absolute-autoload-file-names): * lisp/obsolete/gulp.el (gulp-send-requests): * lisp/obsolete/vc-arch.el (vc-arch-trim-revlib): * lisp/org/ob-core.el (org-babel-remove-temporary-directory): * lisp/progmodes/ebnf2ps.el (ebnf-file-suffix-regexp, ebnf-style-database): * lisp/progmodes/executable.el (executable-command-find-posix-p): * lisp/startup.el (command-line): * lisp/textmodes/refer.el (refer-get-bib-files): * lisp/url/url-about.el (url-probe-protocols): * lisp/vc/vc-rcs.el (vc-rcs-register, vc-rcs-unregister): * test/lisp/net/tramp-archive-tests.el (tramp-archive-test19-directory-files-and-attributes): * test/lisp/net/tramp-tests.el (tramp-test19-directory-files-and-attributes): Replace ^ and $ with \` and \', respectively. Use (rx (or (not ".") "...")), translated into "[^.]\\|\\.\\.\\.", to match anything but "." and "..", instead of several incorrect regexps.
| * Clarify the doc string of 'yank'Eli Zaretskii2020-04-141-4/+5
| | | | | | | | | | | | * lisp/simple.el (yank): Mention 'current-kill' in the doc string, so that people could find all the gory details of what is "the most recent kill" for this purpose. (Bug#40375)
| * New function erc-track-switch-buffer-other-windowAmin Bandali2020-04-141-9/+23
| | | | | | | | | | | | | | | | | | * lisp/erc/erc-track.el (erc-track-switch-buffer): Factor out the implementation from here ... (erc-track--switch-buffer): ... to here. (erc-track-switch-buffer-other-window): New function, like `erc-track-switch-buffer', but uses `switch-to-buffer-other-window' instead, to open the buffer in another window.
| * New function erc-switch-to-buffer-other-windowAmin Bandali2020-04-131-19/+28
| | | | | | | | | | | | | | | | | | * lisp/erc/erc.el (erc-switch-to-buffer): Factor out the buffer choice implementation from here ... (erc--switch-to-buffer): ... to here. (erc-switch-to-buffer-other-window): New function, like `erc-switch-to-buffer', but uses `switch-to-buffer-other-window' instead, to open the buffer in another window.
| * gnus-shorten-url: Improve and avoid args-out-of-range errorŠtěpán Němec2020-04-131-7/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'gnus-shorten-url' (used by 'gnus-summary-browse-url') ignored fragment identifiers and didn't check substring bounds, in some cases leading to runtime errors, e.g.: (gnus-shorten-url "https://some.url.with/path/and#also_a_long_target" 40) ;; => Lisp error: (args-out-of-range "/path/and" -18 nil) This commit makes it account for #fragments and fixes faulty string computation. (bug#39980) Do not merge to master, where the helper is put to subr-x.el. * lisp/gnus/gnus-sum.el (gnus--string-truncate-left): New helper function (copied from 'ediff-truncate-string-left'). (gnus-shorten-url): Use it and don't drop #fragments.
* | * lisp/htmlfontify.el: Use `font-lock-ensure` unconditionallyStefan Monnier2020-04-151-84/+25
| | | | | | | | | | | | | | | | | | Remove redundant `:group`s. (hfy-force-fontification): Make it an obsolete alias for `font-lock-ensure`. Update all callers. (hfy-init-kludge-hooks, hfy-init-kludge-hook): Remove vars, not used any more. (hfy-kludge-cperl-mode): Declare it obsolete.
* | Initial version of native image API support for MS-WindowsJuan José García-Ripoll2020-04-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/w32image.c: New file. * src/w32term.h: Add prototypes of 'w32_load_image', 'w32_gdiplus_startup', 'w32_gdiplus_shutdown', and 'w32_query_frame_background_color'. * src/w32term.c (w32_query_frame_background_color): No longer static. * src/w32.c (term_ntproc) [HAVE_GDIPLUS]: Call 'w32_gdiplus_shutdown'. * src/image.c (struct image_type) <valid_p>: Accept an additional argument, the image type. All implementations changed. (init_native_image_functions, native_image_p, native_image_load) [HAVE_NATIVE_IMAGE_API]: New methods for "native image type". (initialize_image_type) [HAVE_NATIVE_IMAGE_API]: Call 'init_native_image_functions'. (image_types) [HAVE_NATIVE_IMAGE_API]: Add settings for native image API. (lookup_image_type) [HAVE_NATIVE_IMAGE_API]: Initialize native functions if needed. * lisp/term/w32-win.el (dynamic-library-alist): Add gdiplus and shlwapi. * etc/NEWS: Announce the new feature. * configure.ac (native-image-api): New option, OFF by default. (HAVE_NATIVE_IMAGE_API): If native-image-api is selected, add w32image.o to W32_OBJ.
* | Fix hi-lock test and add new test for unhighlight (bug#40337)Juri Linkov2020-04-141-2/+2
| | | | | | | | | | | | | | | | | | * lisp/hi-lock.el (hi-lock-unface-buffer): Use hi-lock--hashcons only on strings, not lists. * test/lisp/hi-lock-tests.el (hi-lock-bug26666): Revert previous change, use "a" instead of "b". (hi-lock-unhighlight): New test.
* | * lisp/vc/vc.el (vc-deduce-fileset): Improve docstring (bug#34949).Juri Linkov2020-04-141-12/+22
| |
* | Merge from origin/emacs-27Glenn Morris2020-04-135-36/+47
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | 1dfc497fac Minor wording change in Introduction to Programming in Ema... ff09b4eeac Fix 'flymake-show-diagnostics-buffer' when line numbers ar... 63e8d0ea87 Fix last changes describing mail commands 01212a762f Do setup Flymake in file-less Elisp buffers 36873ef2b2 Fix error message for ‘cl-struct-unknown-slot’ (bug#39995) 3f9310b0fe Fix and improve documentation of mail-related features 1482a75efa Fix build failure with Fx_gtk_debug cf57663f2a Mention jit-lock deferred as an alternative to fast-but-im... # Conflicts: # etc/NEWS
| * Fix 'flymake-show-diagnostics-buffer' when line numbers are displayedEli Zaretskii2020-04-131-29/+36
| | | | | | | | | | | | * lisp/progmodes/flymake.el (flymake--diagnostics-buffer-entries): Do nothing if 'flymake--diagnostics-buffer-source' is not a buffer. (Bug#40529)
| * Do setup Flymake in file-less Elisp buffersJoão Távora2020-04-121-3/+3
| | | | | | | | | | | | | | Fixes: bug#40573 * lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Change condition for setting flymake-diagnostic-functions.
| * Fix error message for ‘cl-struct-unknown-slot’ (bug#39995)Philipp Stephani2020-04-121-1/+1
| | | | | | | | | | * lisp/emacs-lisp/cl-macs.el (cl-struct-unknown-slot): Remove spurious format specifiers.
| * Fix and improve documentation of mail-related featuresEli Zaretskii2020-04-122-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/simple.el (compose-mail): Clarify the effect of the CONTINUE argument. * lisp/mail/sendmail.el (mail-from-style): Update the RFC value in the obsolescence warning text. * doc/emacs/sending.texi (Sending Mail): Fix the description of the behavior of 'C-x m' wrt prefix argument. (Mail Headers): Remove the description of 'mail-from-style'. * etc/NEWS: Mention that 'mail-from-style' is obsolete. (Bug#40561)
* | gnus-shorten-url: Improve and avoid args-out-of-range errorŠtěpán Němec2020-04-134-22/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'gnus-shorten-url' (used by 'gnus-summary-browse-url') ignored fragment identifiers and didn't check substring bounds, in some cases leading to runtime errors, e.g.: (gnus-shorten-url "https://some.url.with/path/and#also_a_long_target" 40) ;; => Lisp error: (args-out-of-range "/path/and" -18 nil) This commit makes it account for #fragments and fixes faulty string computation, reusing existing helper function. (bug#39980) * lisp/vc/ediff-init.el (ediff-truncate-string-left): Rename to 'string-truncate-left' and move... * lisp/emacs-lisp/subr-x.el (string-truncate-left): ...here. All callers changed. * lisp/gnus/gnus-sum.el (gnus-shorten-url): Fix args-out-of-range error, don't drop #fragments, use 'string-truncate-left'.
* | Fix last changeEli Zaretskii2020-04-131-1/+1
| | | | | | | | | | * lisp/mail/rmail.el (rmail-simplified-subject): A prefix can have up to 4 characters, not 3.
* | Improve support of "Re:" in RmailEli Zaretskii2020-04-131-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/mail/rmail.el (rmail-simplified-subject) (rmail-reply-regexp): Recognize U+FF1A FULLWIDTH COLON as a colon after "Re:"-type prefixes. (rmail-re-abbrevs): New defcustom with localized abbreviations of "Re:". (rmail-reply-regexp): Use 'rmail-re-abbrevs'. Recognize U+FF1A in addition to the ASCII colon. * etc/NEWS: Call out the new defcustom 'rmail-re-abbrevs'.
* | Fix hi-lock test and add new test for case-fold (bug#40337)Juri Linkov2020-04-131-19/+18
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/hi-lock.el (hi-lock--regexps-at-point): Handle font-lock faces. (hi-lock-unface-buffer): Simplify default value handling. (hi-lock-set-pattern): Add either lighter or regexp to hi-lock-interactive-lighters. (hi-lock-set-pattern): Put overlay prop hi-lock-overlay-regexp to either lighter or regexp. * test/lisp/hi-lock-tests.el (hi-lock-bug26666): Use "b" instead of "a". (hi-lock-case-fold): New test.
* | Fix bootstrap compiler warnings about `read-library-name'Štěpán Němec2020-04-122-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Introduced by 2020-03-28T22:16:28+01:00!stepnem@gmail.com 2c45091791 (load-library, locate-library: Use read-library-name) Thanks to Juanma Barranquero <lekktu@gmail.com> for reporting. * lisp/files.el: * lisp/subr.el: Declare 'read-library-name'.
* | Also use named functions for the ‘gv’ declare forms (Bug#40491)Philipp Stephani2020-04-121-3/+13
| | | | | | | | | | * lisp/emacs-lisp/gv.el (gv--expander-defun-declaration) (gv--setter-defun-declaration): New helper functions; use them.
* | Use named functions in {defun,macro}-declarations-alist (Bug#40491)Philipp Stephani2020-04-121-58/+81
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/byte-run.el (byte-run--set-advertised-calling-convention) (byte-run--set-obsolete, byte-run--set-interactive-only) (byte-run--set-pure, byte-run--set-side-effect-free) (byte-run--set-compiler-macro, byte-run--set-doc-string) (byte-run--set-indent, byte-run--set-debug) (byte-run--set-no-font-lock-keyword): New helper functions. (defun-declarations-alist, macro-declarations-alist): Use them.
* | * lisp/hi-lock.el (hi-lock-highlight-range): Bump default value (bug#40224)Juri Linkov2020-04-121-1/+1
| | | | | | | | | | * lisp/hi-lock.el (hi-lock-highlight-range): Change default value from 200_000 to 2_000_000.
* | Implement case-insensitivity in hi-lock (bug#40337)Juri Linkov2020-04-122-62/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/hi-lock.el (hi-lock-interactive-lighters): New buffer-local variable. (hi-lock-mode): Set hi-lock-interactive-lighters to nil. (hi-lock-line-face-buffer): Use case-fold-search and search-upper-case. (hi-lock-face-buffer): Add new arg LIGHTER. Use case-fold-search, search-upper-case and search-spaces-regexp. (hi-lock-face-phrase-buffer): Don't call hi-lock-process-phrase. Use case-fold-search, search-upper-case and search-whitespace-regexp. (hi-lock-face-symbol-at-point): Use case-fold-search and search-upper-case. (hi-lock-unface-buffer): Use hi-lock-interactive-lighters to get a human-readable string for completion and x-popup-menu. (hi-lock-process-phrase): Remove function. (hi-lock-set-pattern): Add new args LIGHTER, CASE-FOLD, SPACES-REGEXP. Set font-lock pattern to a search function. Add mapping from lighter or regexp to pattern to hi-lock-interactive-lighters. Let-bind case-fold-search and search-spaces-regexp in search functions. * lisp/isearch.el (isearch--highlight-regexp-or-lines): Replace ugly code with let-binding of case-fold-search, search-upper-case, search-spaces-regexp. (isearch-highlight-regexp, isearch-highlight-lines-matching-regexp): Use lambda.
* | * lisp/progmodes/cl-font-lock.el: Fix header and make it a minor modeStefan Monnier2020-04-111-52/+57
| | | | | | | | | | | | | | | | | | | | Change copyright to FSF and licence to GPLv3+. Tweak Commentary (the code doesn't seem to provide the lambda prettification mentioned). (cl-font-lock-add-regexes): Remove macro. (cl-font-lock-built-in-keywords): New variable. (cl-font-lock-built-in-mode): New minor mode.
* | * lisp/progmodes/cl-font-lock.el: New fileStefan Monnier2020-04-111-0/+284
| | | | | | | | | | | | Taken from commit 1a54066611da213626ab69ea426ba3c63ece3438 of https://github.com/cl-font-lock/cl-font-lock, but with names reverted to a `cl-font-lock-` prefix.
* | Merge from origin/emacs-27Glenn Morris2020-04-112-8/+17
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | fd27685c1e (origin/emacs-27) ; * doc/lispref/keymaps.texi (Extended M... 6057d79a4e * doc/lispref/keymaps.texi (Extended Menu Items): Tweak :k... 17a1bb5a03 Fix redisplay when scrolling under redisplay-dont-pause 90321f595c Fix face extension in pulse.el 36c42d2a30 * doc/misc/tramp.texi (Bug Reports): Avoid line breaks in ... d5750af151 Avoid assertion violation in intervals.c 18d1bc0a09 Improve documentation of 'jit-lock-contextually' 08486f4cae Speed up 'resize-mode' child frames a little f451ef9308 ; * etc/NEWS: Mention 'executing-macro' in removed vars. c49d379f17 Fix some problems with moving and resizing child frames # Conflicts: # etc/NEWS
| * Fix face extension in pulse.elEli Zaretskii2020-04-091-0/+3
| | | | | | | | | | | | * lisp/cedet/pulse.el (pulse-reset-face): Propagate the :extend attribute of FACE to the face used for displaying the pulse. Reported by Adam Porter <adam@alphapapa.net>.
| * Improve documentation of 'jit-lock-contextually'Eli Zaretskii2020-04-081-8/+14
| | | | | | | | | | | | | | | | | | | | * lisp/jit-lock.el (jit-lock-contextually): Clarify the jit-lock operation when 'jit-lock-contextually' is non-nil and non-t. * doc/lispref/modes.texi (Syntactic Font Lock) (Other Font Lock Variables): Document the relation between 'jit-lock-register', 'font-lock-keywords-only', and syntactic refontification.
* | ; * lisp/eshell/esh-var.el (eshell-variable-aliases-list): Fix wording.Eli Zaretskii2020-04-111-1/+1
| |
* | Reword documentation for eshell-variable-aliases-listFederico Tedin2020-04-111-15/+15
| | | | | | | | | | * lisp/eshell/esh-var.el (eshell-variable-aliases-list): Update documentation string to avoid passive tense.
* | * lisp/net/tramp.el (tramp-action-process-alive): Read pending output.Michael Albinus2020-04-111-0/+2
| |
* | chinese-hz is not ASCII compatible (bug#40407)Mattias Engdegård2020-04-091-0/+5
| | | | | | | | | | * lisp/language/chinese.el: Disable :ascii-compatible-p for chinese-hz. * test/lisp/international/mule-tests.el (mule-hz): New test.