summaryrefslogtreecommitdiff
path: root/lisp/font-lock.el
Commit message (Collapse)AuthorAgeFilesLines
* ; Add 2024 to copyright yearsPo Lu2024-01-021-1/+1
|
* Rename the newly added -ref- faces to -use-Dmitry Gutov2023-02-281-2/+2
| | | | | | * lisp/font-lock.el (font-lock-variable-use-face) (font-lock-property-use-face): Rename from font-lock-variable-ref-face and font-lock-property-ref-face. Update all references (bug#61655).
* Add more/finer faces for tree-sitterDmitry Gutov2023-02-251-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/modes.texi (Faces for Font Lock): Update the list of faces (bug#61655). * etc/NEWS: Update the list of new faces. * lisp/cus-theme.el (custom-theme--listed-faces): Update. * lisp/font-lock.el (font-lock-function-call-face) (font-lock-variable-ref-face, font-lock-property-ref-face): New faces. (font-lock-property-name-face): Rename from 'font-lock-property-face'. * lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): Use new faces. More 'enumerator' query to 'definition' feature. (c-ts-mode--fontify-declarator, c-ts-mode--fontify-variable): Use new faces. * lisp/progmodes/cmake-ts-mode.el (cmake-ts-mode--font-lock-settings): Use new faces. * lisp/progmodes/csharp-mode.el (csharp-ts-mode--font-lock-settings): Use new faces. * lisp/progmodes/go-ts-mode.el (go-ts-mode--font-lock-settings): Use new faces. * lisp/progmodes/java-ts-mode.el (java-ts-mode--font-lock-settings): Use new faces. * lisp/progmodes/js.el (js--treesit-fontify-assignment-lhs) (js--treesit-font-lock-settings): Use new faces. Highlight variable definitions inside array and object destructuring patterns. * lisp/progmodes/python.el (python--treesit-variable-p): Exclude identifiers in parameters. (python--treesit-settings): Use new faces. Highlight function parameters. Move 'keyword' up to still highlight 'self' as keyword. * lisp/progmodes/ruby-ts-mode.el (ruby-ts--font-lock-settings): Use new faces. * lisp/progmodes/rust-ts-mode.el (rust-ts-mode--font-lock-settings): Use new faces. * lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--font-lock-settings): Use new faces. * lisp/textmodes/css-mode.el (css--treesit-settings): Use font-lock-property-ref-face. * lisp/textmodes/toml-ts-mode.el (toml-ts-mode--font-lock-settings): Use font-lock-property-ref-face. * lisp/textmodes/yaml-ts-mode.el (yaml-ts-mode--font-lock-settings): Same.
* Ensure upper bound of font-lock region is less than point-maxAlan Mackenzie2023-02-051-0/+2
| | | | | | | | This fixes bug #61298. The new long-lines code may have narrowed a buffer before font-lock-default-fontify-region gets called. * lisp/font-lock.el (font-lock-default-fontify-region): Set `end' to point-max if it is greater that it.
* Add back renamed function 'font-lock-fontify-syntactically-region'Benson Chu2023-01-081-2/+7
| | | | | | | | | | | | | A more accurate replacement for font-lock-fontify-syntactically-region would be a function that funcalls the font-lock-fontify-syntactically-function variable. That way, callers of the function can inherit new behavior, if the value of that variable changes. * lisp/font-lock.el (font-lock-fontify-syntactically-region): Add function back, remove its obsolete alias. Copyright-paperwork-exempt: yes
* (font-lock-regexp-face): New faceDmitry Gutov2023-01-061-0/+6
| | | | | | | | | | | | * lisp/font-lock.el (font-lock-regexp-face): New face. * lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--font-lock-settings): * lisp/progmodes/ruby-ts-mode.el (ruby-ts--font-lock-settings): * lisp/progmodes/js.el (js--treesit-font-lock-settings): Use it for regexps. * etc/NEWS: Mention the addition.
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-011-1/+1
|
* ; Improve doc strings of some new facesEli Zaretskii2022-12-271-2/+4
| | | | | * lisp/font-lock.el (font-lock-punctuation-face) (font-lock-delimiter-face): Doc fix.
* Add alias for removed font-lock functionBenson Chu2022-12-221-0/+1
| | | | | | | | | | | As part of 18947103fabf8070738b3bd9c5a8d02f90988a3d, `font-lock-fontify-syntactically-region' was renamed to `font-lock-default-fontify-sytactically'. * lisp/font-lock.el (font-lock-fontify-syntactically-region): Add obsolete alias for the renamed function. Copyright-paperwork-exempt: yes
* Merge remote-tracking branch 'savannah/master' into feature/tree-sitterYuan Fu2022-11-211-16/+4
|\
| * Remove aliases of `with-silent-modifications`Stefan Monnier2022-10-071-16/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were many reinventions of `with-silent-modifications` (tho many of them weren't reinventions but copy&paste of code from font-lock, IIUC). Now that those don't even need to let-bind `inhibit-point-motion-hooks` they're really just obsolete. * lisp/font-lock.el (save-buffer-state): Delete macro. (font-lock-unfontify-region, font-lock-default-fontify-region): Use `with-silent-modifications` instead. (font-lock-after-change-function, font-lock-fontify-block): Don't let-bind `inhibit-point-motion-hooks`. * lisp/htmlfontify.el (hfy-save-buffer-state): Delete macro. (hfy-mark-trailing-whitespace, hfy-unmark-trailing-whitespace): Use `with-silent-modifications` instead. * lisp/jit-lock.el (with-buffer-prepared-for-jit-lock): Delete macro. (jit-lock--debug-fontify, jit-lock-refontify, jit-lock-function) (jit-lock-fontify-now, jit-lock-force-redisplay) (jit-lock-deferred-fontify, jit-lock-context-fontify) (jit-lock-after-change): Use `with-silent-modifications` instead. * lisp/progmodes/antlr-mode.el (save-buffer-state-x): Delete macro. (antlr-hide-actions): Use `with-silent-modifications` instead. * lisp/progmodes/hideshow.el (hs-life-goes-on): Don't let-bind `inhibit-point-motion-hooks`.
* | ; * lisp/font-lock.el (font-lock-bracket-face): Improve docstringRobert Pluim2022-11-101-1/+1
| |
* | Add more font-lock faces (Bug#58940)Randy Taylor2022-11-101-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/font-lock.el (font-lock-bracket-face, font-lock-delimiter-face, font-lock-escape-face, font-lock-number-face, font-lock-misc-punctuation-face, font-lock-operator-face, font-lock-property-face, font-lock-punctuation-face): Define new faces. * lisp/cus-theme.el (custom-theme--listed-faces): Add them to the list. * doc/lispref/modes.texi (Faces for Font Lock): Document them. * etc/NEWS: Mention them.
* | Use tree-sitter for font-lock's syntactic function (optionally)Yuan Fu2022-10-311-3/+15
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this change, we rebind font-lock-fontify-region-function and call font-lock's function in tree-sitter's function, and the order of fontification is tree-sitter, font-lock syntax, font-lock regexp. Now we make font-lock's syntax function customizable and replace it with tree-sitter's function, and the order of fontification is tree-sitter, font-lock regexp. * doc/lispref/modes.texi (Parser-based Font Lock): Reflect the change in manual. * lisp/font-lock.el (font-lock-fontify-syntactically-function): New varaible. (font-lock-default-fontify-region): Call font-lock-fontify-syntactically-function rather. (font-lock-fontify-syntactically-region): Rename to font-lock-default-fontify-syntactically (font-lock-default-fontify-syntactically): Rename to this. * lisp/treesit.el (treesit-font-lock-fontify-region): Don't call font-lock functions. (treesit-font-lock-enable): Remove this function. It is not used even before this change. (treesit-major-mode-setup): Instead of binding font-lock-fontify-region-function, now bind to font-lock-fontify-syntactically-function. And we can let font-lock do it's thing.
* Make point-at-eol and point-at-bol obsoleteStefan Kangas2022-08-231-1/+1
| | | | | | | * lisp/subr.el (point-at-eol, point-at-bol): Make XEmacs compat aliases obsolete in favor of `pos-bol'/'line-beginning-position' or 'pos-eol'/'line-end-position'. Update callers. Ref: https://lists.gnu.org/r/emacs-devel/2022-08/msg00853.html
* Delete additional items obsolete since 20, 21 and 22Stefan Kangas2022-07-311-3/+0
| | | | | | | | | | | * lisp/font-lock.el (font-lock-reference-face): Delete variable alias obsolete since 20.3. * lisp/progmodes/cc-cmds.el (c-toggle-auto-state): Delete alias obsolete since 22.1. * lisp/replace.el (query-replace-regexp-eval): Delete function obsolete since 22.1. (replace-count, replace-re-search-function): Doc fixes; adjust for above deleted function.
* Delete fast-lock.el and lazy-lock.elStefan Kangas2022-07-281-93/+14
| | | | | | | | | | | | | | | | | | | | | | | | The 'font-lock-support-mode' is occasionally useful for debugging purposes, so it remains as a defvar. Ref: https://lists.gnu.org/r/emacs-devel/2020-08/msg00125.html * lisp/obsolete/fast-lock.el: * lisp/obsolete/lazy-lock.el: Delete libraries obsolete since 22.1. (Bug#56560) * lisp/font-lock.el (font-lock-support-mode): Make into a defvar and delete any mention of 'lazy-lock-mode' and 'fast-lock-mode'. (font-lock-turn-on-thing-lock, font-lock-turn-off-thing-lock): Drop support for obsolete modes lazy-lock and fast-lock. (font-lock-after-fontify-buffer) (font-lock-after-unfontify-buffer): Make into obsolete function aliases for 'ignore'. Adjust callers. (font-lock-keywords, font-lock-inhibit-thing-lock): Adjust documentation to not mention lazy-lock and fast-lock. * lisp/font-core.el (font-lock-defaults): Adjust documentation to not mention 'font-lock-inhibit-thing-lock'. * lisp/mail/rmail.el (rmail-variables): Don't inhibit obsolete lazy-lock-mode and fast-lock-mode.
* Prefer defvar-keymap in some trivial casesStefan Kangas2022-07-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/calendar/diary-lib.el (diary-fancy-overriding-map): * lisp/emacs-lisp/chart.el (chart-mode-map): * lisp/emulation/cua-base.el (cua-global-keymap) (cua--cua-keys-keymap, cua--prefix-override-keymap) (cua--prefix-repeat-keymap, cua--global-mark-keymap) (cua--rectangle-keymap, cua--region-keymap): * lisp/emulation/viper-keym.el (viper-vi-intercept-map) (viper-insert-intercept-map, viper-emacs-intercept-map) (viper-vi-global-user-map, viper-vi-basic-map, viper-vi-kbd-map) (viper-vi-diehard-map, viper-insert-global-user-map) (viper-insert-basic-map, viper-insert-diehard-map) (viper-insert-kbd-map, viper-replace-map) (viper-emacs-global-user-map, viper-emacs-kbd-map) (viper-empty-keymap, viper-mode-map, viper-minibuffer-map) (viper-ex-cmd-map, ex-read-filename-map) (viper-slash-and-colon-map, viper-comint-mode-modifier-map) (viper-dired-modifier-map, viper-gnus-modifier-map): * lisp/gnus/gnus-sum.el (gnus-summary-generic-mark-map): * lisp/menu-bar.el (global-buffers-menu-map) (menu-bar-preferences-menu): * lisp/mh-e/mh-e.el (mh-folder-mode-map, mh-inc-spool-map) (mh-search-mode-map, mh-show-mode-map): * lisp/play/dunnet.el (dungeon-batch-map): * lisp/progmodes/autoconf.el (autoconf-mode-map): * lisp/tool-bar.el (tool-bar-map): * lisp/vc/ediff-help.el (ediff-help-region-map): * lisp/vc/ediff-hook.el (menu-bar-epatch-menu) (menu-bar-ediff-merge-menu, menu-bar-ediff-menu): * lisp/windmove.el (windmove-mode-map): * lisp/xwidget.el (xwidget-webkit-isearch-mode-map) (xwidget-webkit-edit-mode-map): Prefer defvar-keymap.
* Delete obsolete variable font-lock-maximum-sizeStefan Kangas2022-07-091-38/+6
| | | | | | | | | | | | * lisp/font-lock.el (font-lock-maximum-size): Delete variable obsolete since 24.1. (font-lock-initial-fontify): * lisp/mail/rmail.el (rmail-variables): * lisp/mh-e/mh-mime.el (mh-small-show-buffer-p): Don't use above deleted variable. * lisp/font-core.el (font-lock-mode): * lisp/font-lock.el: * lisp/info.el: Don't mention above deleted variable.
* ; Fix typos.Mattias Engdegård2022-07-021-1/+1
|
* (syntax-wholeline-max): New varStefan Monnier2022-06-301-20/+13
| | | | | | | | | | | | | | | Try and reduce the pain caused by font-lock and syntax-propertize's wholeline-based operation in buffers made up of a few very long lines (bug#45898). * lisp/emacs-lisp/syntax.el (syntax-wholeline-max): New var. (syntax--lbp): New function. (syntax-propertize-wholelines): Use it. * lisp/jit-lock.el (jit-lock--antiblink-post-command): Use `syntax--lbp`. * lisp/font-lock.el (font-lock-extend-region-wholelines): Rewrite, using `syntax-propertize-wholelines`.
* Small fix in font-lock-extend-region-multilineSébastien Miquel2022-06-191-6/+11
| | | | | | * lisp/font-lock.el (font-lock-extend-region-multiline): Do not extend the region if `font-lock-multiline' starts at `font-lock-end' (bug#46558).
* Merge from origin/emacs-28Eli Zaretskii2022-04-131-5/+5
|\ | | | | | | | | | | | | # Conflicts: # etc/NEWS # lisp/desktop.el # lisp/dired.el
| * ; * lisp/font-lock.el (font-lock-keywords): Doc fix.Eli Zaretskii2022-04-021-5/+5
| |
* | ; Improve documentation of 'font-lock-ignore'Eli Zaretskii2022-04-021-25/+30
| | | | | | | | | | | | | | | | * etc/NEWS: * lisp/font-lock.el (font-lock-ignore): * doc/lispref/modes.texi (Customizing Keywords): Clarify the documentation of 'font-lock-ignore'. * doc/emacs/display.texi (Font Lock): Mention 'font-lock-ignore'.
* | New user option 'font-lock-ignore'Augusto Stoffel2022-04-011-3/+83
| | | | | | | | | | | | | | | | * lisp/font-lock (font-lock-ignore): New defcustom. (font-lock-compile-keywords): Call 'font-lock--filter-keywords'. (font-lock--match-keyword, font-lock--filter-keywords): New functions, implement the functionality described in 'font-lock-ignore'. * doc/lispref/modes.texi: Describe 'font-lock-ignore'.
* | Make `font-lock-add-keywords' work in derived modesLars Ingebrigtsen2022-01-241-2/+3
| | | | | | | | | | * lisp/font-lock.el (font-lock-set-defaults): Make `font-lock-add-keywords' work in derived modes (bug#24176).
* | 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
| |
* | font-lock-type-face doc string improvementLars Ingebrigtsen2021-11-041-1/+1
|/ | | | | * lisp/font-lock.el (font-lock-type-face): Fix grammar in doc string (bug#51574).
* ; Minor stylistic fixes found by checkdocStefan Kangas2021-09-161-5/+5
|
* Add font-lock-doc-markup-face (bug#50041)Mattias Engdegård2021-08-141-1/+13
| | | | | | | | | | | This face is intended for mark-up syntax and constructs inside text using font-lock-doc-face; ie, documentation comments and strings in programming modes. * lisp/font-lock.el (font-lock-doc-markup-face): New face. * lisp/cus-theme.el (custom-theme--listed-faces): Add it to the list. * doc/lispref/modes.texi (Faces for Font Lock): Document it. * etc/NEWS: Mention it.
* * lisp/font-lock.el: Fix `font-lock-comment-end-skip` fallback (bug#34088)Stefan Monnier2021-05-111-7/+6
| | | | | | | | | (font-lock-fontify-syntactically-region): Use `comment-end-skip` as fallback for `font-lock-comment-end-skip`, as is done for `font-lock-comment-start-skip` (and as the name suggests). * lisp/progmodes/opascal.el (opascal-mode): Revert last change, made unnecessary.
* Revert "Remove font-lock toggle from font-lock-update"Lars Ingebrigtsen2021-03-241-6/+10
| | | | | | This reverts commit 23995414fec483287e7fb9c9a279483319f9fc54. The subject is under discussion.
* Remove font-lock toggle from font-lock-updatePaul W. Rankin2021-03-251-10/+6
| | | | | | * lisp/font-lock.el (font-lock-update): Remove call to font-lock-unfontify-region and font-lock-mode toggle with ARG; this did not perform what original author intended
* Unbind `M-o' and add new `C-x x f' bindingLars Ingebrigtsen2021-03-181-0/+12
| | | | | | | | | | | * doc/lispref/modes.texi (Other Font Lock Variables): `font-lock-fontify-block' is no longer bound. * lisp/bindings.el (ctl-x-x-map): Bind `font-lock-update'. * lisp/font-lock.el (font-lock-update): New command written by Gregory Heytings <gregory@heytings.org>. * lisp/loadup.el: Remove transitional experimental code.
* Prefer defvar-local in preloaded filesStefan Kangas2021-01-311-10/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/abbrev.el: * lisp/bindings.el (mode-line-mule-info, mode-line-modified) (mode-line-remote, mode-line-process) (mode-line-buffer-identification): * lisp/buff-menu.el (Buffer-menu-files-only): * lisp/files.el (buffer-file-number, buffer-file-read-only) (local-write-file-hooks, write-contents-functions) (file-local-variables-alist, dir-local-variables-alist) (save-buffer-coding-system, buffer-save-without-query): * lisp/font-core.el (font-lock-defaults): * lisp/font-lock.el (font-lock-keywords-case-fold-search) (font-lock-syntactically-fontified) (font-lock-extend-after-change-region-function) (font-lock-extend-region-functions, font-lock-major-mode): * lisp/menu-bar.el (list-buffers-directory): * lisp/simple.el (next-error--message-highlight-overlay) (next-error-buffer, next-error-function) (next-error-move-function, goto-line-history) (minibuffer-default-add-done, undo-extra-outer-limit): * lisp/tab-bar.el (tab-switcher-column): * lisp/term/ns-win.el (ns-select-overlay): * lisp/window.el (window-size-fixed, window-area-factor) (window-group-start-function, window-group-end-function) (set-window-group-start-function) (recenter-window-group-function) (pos-visible-in-window-group-p-function) (selected-window-group-function) (move-to-window-group-line-function): Prefer defvar-local.
* Move the ‘declare’ form before the interactive spec in 10 functions.Juri Linkov2021-01-201-1/+1
| | | | | | | | | | | | * lisp/emacs-lisp/package.el (package-menu-hide-package): * lisp/font-lock.el (font-lock-debug-fontify): * lisp/image.el (image-jpeg-p): * lisp/mail/flow-fill.el (fill-flowed-test): * lisp/mh-e/mh-speed.el (mh-speed-toggle, mh-speed-view): * lisp/progmodes/project.el (project-async-shell-command) (project-shell-command, project-compile): * lisp/progmodes/sh-script.el (sh-assignment): Fix special forms to follow in this order: docstring, declare, interactive.
* Update copyright year to 2021Paul Eggert2021-01-011-1/+1
| | | | Run "TZ=UTC0 admin/update-copyright".
* Shorten over-wide docstrings in variablesStefan Kangas2020-12-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/cedet/semantic/util-modes.el (semantic-highlight-func-popup-menu): * lisp/emacs-lisp/elint.el (elint-top-form-logged): * lisp/erc/erc-dcc.el (erc-dcc-list): * lisp/expand.el (expand-pos): * lisp/font-lock.el (cpp-font-lock-keywords-source-depth): * lisp/gnus/gnus-sum.el (gnus-sort-gathered-threads-function): * lisp/gnus/message.el (message-cite-style-thunderbird): * lisp/gnus/nnmh.el (nnmh-be-safe): * lisp/gnus/nntp.el (nntp-open-telnet-envuser): * lisp/international/mule-cmds.el (current-transient-input-method): * lisp/net/tramp.el (tramp-file-name-structure): * lisp/org/ob-R.el (org-babel-R-write-object-command): * lisp/org/org-attach.el (org-attach-after-change-hook): * lisp/org/org.el (org-stamp-time-of-day-regexp): * lisp/progmodes/elisp-mode.el (elisp-xref-find-def-functions): * lisp/progmodes/ruby-mode.el (ruby-block-mid-re): * lisp/progmodes/verilog-mode.el (verilog-cache-enabled): * lisp/term.el (term-scroll-end): * lisp/textmodes/table.el (table-command-remap-alist) (table-inhibit-auto-fill-paragraph, table-command-remap-alist): * lisp/vc/ediff-diff.el (ediff-ignore-similar-regions): * lisp/vc/ediff-wind.el (ediff-mouse-pixel-threshold): * lisp/vc/smerge-mode.el (smerge-refine-ignore-whitespace): * lisp/vc/vc.el (vc-log-short-style): * lisp/view.el (view-exit-action): Shorten doc strings to not exceed 80-column limits. (Bug#44858)
* Prefer setq-local in font-lock.elStefan Kangas2020-12-091-15/+12
| | | | | | | * lisp/font-lock.el: (font-lock-add-keywords, font-lock-turn-on-thing-lock) (font-lock-fontify-syntactic-keywords-region) (font-lock-set-defaults): Prefer setq-local.
* Merge from origin/emacs-27Glenn Morris2020-10-021-1/+1
|\ | | | | | | | | | | | | | | | | 78eacf31e8 ; Fix many typos in symbols in docs and comments d5d12707d6 * doc/misc/flymake.texi (Using Flymake): Fix a typo. (Bug... # Conflicts: # lisp/allout.el # lisp/progmodes/ebrowse.el
| * ; Fix many typos in symbols in docs and commentsStefan Kangas2020-10-021-1/+1
| |
* | * lisp/font-lock.el: No longer use headings as end of section markers.Jonas Bernoulli2020-08-131-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Each section ends right before the following section begins and IMO that means that it is unnecessary to mark the end of sections. For users of `outline-minor-mode' the old end-of-section markers were a distraction. They made it much harder to parse the overview outline state because each section heading was followed by a end-of-section marker that was formatted as a section heading. Because of this I wanted to remove the end-of-section markers. But as Eli pointed out these sections are long and not everyone uses `outline-minor-mode'. So instead of removing them, I am turning the end-of-section markers into regular comments (beginning with just two semicolons) instead of section headings (beginning with tree semicolons). That way users of `outline-minor-mode' won't be distracted by them and others can still benefit from the markers as before.
* | * lisp/font-lock.el: Split the Commentary into subsections.Jonas Bernoulli2020-08-131-6/+6
| | | | | | | | | | | | The "Commentary" was already split into multiple sections, but these sections where on the same level as "Commentary" itself, which is less convenient for users of `outline-minor-mode'.
* | * lisp/font-lock.el (font-lock--syntax-table-affects-ppss): New varStefan Monnier2020-06-041-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This tries to make `font-lock-syntax-table` work correctly even when it changes the parsing of strings and comments, as was the case in `font-latex.el`. We should probably deprecate the use of `font-lock-syntax-table` since the present fix is still not 100% and since it comes with performance problems in large files. (font-lock-set-defaults): Set it. (font-lock-fontify-syntactically-region): Don't use `syntax-ppss` when we think that `font-lock-syntax-table` would interfere.
* | * lisp/font-lock.el (font-lock-ensure): Use font-lock-specified-p (bug#39597)Juri Linkov2020-02-231-3/+4
|/
* Correct "different than" to "different from" where appropriateAlan Mackenzie2020-02-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | (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".
* Update copyright year to 2020Paul Eggert2020-01-011-1/+1
| | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* * lisp/font-lock.el (font-lock-fontify-region): Widen here (bug#38049)Stefan Monnier2019-12-111-34/+34
| | | | (font-lock-default-fontify-region): Instead of here.