1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-01 09:51:22 -08:00
emacs/lisp/org
Stefan Kangas 3d3c109460 Make font-lock face variables obsolete
Using these variables as "another mechanism for changing face
appearance" never really worked, since mode authors were free to use the
face instead of the variable (i.e. quoting the symbol).  This means that
when users customized the variables, it would change its appearance only
in some cases, which is a rather surprising interface.

Indeed, it turns out that some modes have not always been consistent,
and mixed using the variable and the face, increasing the confusion even
further.  Thus, the only thing users could rely on to always work was to
leave the variables at their default value, and to customize the face.

We now recommend customizing the face, and are obsoleting these
variables.  This will lead to some minor code-churn, but it is believed
that it will be ultimately worth it.  To fix existing Lisp code, you
should typically only need to quote the symbol, as this commit shows.

It might be the case that we will have to keep the obsolete variables,
that have been with us since Emacs 19, around for a longer time-period
than normal, to allow package authors to adapt.

* lisp/font-lock.el (font-lock-comment-face)
(font-lock-comment-delimiter-face, font-lock-string-face)
(font-lock-doc-face, font-lock-doc-markup-face, font-lock-keyword-face)
(font-lock-builtin-face, font-lock-function-name-face)
(font-lock-variable-name-face, font-lock-type-face)
(font-lock-constant-face, font-lock-warning-face)
(font-lock-negation-char-face, font-lock-preprocessor-face): Make face
variables obsolete in favor of customizing the faces directly
instead.  (Bug#71469)

* doc/lispref/modes.texi (Faces for Font Lock): Don't document above
obsolete variables.

* lisp/cedet/data-debug.el (data-debug-insert-hash-table)
(data-debug-insert-widget-properties, data-debug-insert-string)
(data-debug-insert-number):
* lisp/emacs-lisp/lisp-mode.el (elisp--font-lock-backslash)
(lisp-font-lock-syntactic-face-function):
* lisp/emacs-lisp/package.el (describe-package-1):
* lisp/generic-x.el (rc-generic-mode, rul-generic-mode):
* lisp/org/org-table.el (org-table-edit-formulas):
* lisp/progmodes/cc-fonts.el (c-font-lock-invalid-single-quotes)
(c-maybe-font-lock-wrong-style-comments, c-font-lock-declarators)
(c-font-lock-c++-lambda-captures, c-font-lock-c++-modules):
* lisp/progmodes/cperl-mode.el (cperl-find-sub-attrs)
(cperl-look-at-leading-count, cperl-process-here-doc)
(cperl-find-pods-heres):
* lisp/progmodes/gdb-mi.el (gdb-init-1, gdb-update, gdb-running)
(gdb-starting, gdb-stopped, gdb-internals)
(gdb-breakpoints--add-breakpoint-row, gdb-locals-handler-custom)
(gdb-registers-handler-custom, gdb-get-source-file):
* lisp/progmodes/js.el (js--font-lock-keywords-1)
(js--font-lock-keywords-2, js-font-lock-syntactic-face-function):
* lisp/progmodes/lua-ts-mode.el (lua-ts--comment-font-lock):
* lisp/progmodes/meta-mode.el (meta-indent-in-string-p):
* lisp/progmodes/prolog.el (prolog-font-lock-keywords):
* lisp/progmodes/python.el (python-font-lock-syntactic-face-function):
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--comment-font-lock):
* lisp/progmodes/sh-script.el (sh-font-lock-syntactic-face-function):
* lisp/textmodes/tex-mode.el (doctex-font-lock-syntactic-face-function):
* test/lisp/faces-tests.el (faces--test-color-at-point):
* test/lisp/progmodes/cperl-mode-tests.el (cperl-test-extra-delimiters)
(cperl-test-bug-47112, cperl-test-bug-65834, cperl-test-bug-66145)
(cperl-test-bug-66161, cperl-test-bug-69604):
* test/lisp/progmodes/python-tests.el
(python-ts-mode-compound-keywords-face)
(python-ts-mode-named-assignment-face-1)
(python-ts-mode-assignment-face-2, python-ts-mode-nested-types-face-1)
(python-ts-mode-union-types-face-1, python-ts-mode-union-types-face-2)
(python-ts-mode-types-face-1, python-ts-mode-types-face-2)
(python-ts-mode-types-face-3, python-ts-mode-isinstance-type-face-1)
(python-ts-mode-isinstance-type-face-2)
(python-ts-mode-isinstance-type-face-3)
(python-ts-mode-superclass-type-face, python-ts-mode-class-patterns-face)
(python-ts-mode-dotted-decorator-face-1)
(python-ts-mode-dotted-decorator-face-2)
(python-ts-mode-builtin-call-face)
(python-ts-mode-interpolation-nested-string)
(python-ts-mode-level-fontification-wo-interpolation)
(python-ts-mode-disabled-string-interpolation)
(python-ts-mode-interpolation-doc-string):
* test/lisp/progmodes/ruby-mode-tests.el
(ruby-heredoc-font-lock, ruby-heredoc-highlights-interpolations)
(ruby-exit!-font-lock, ruby-regexp-interpolation-is-highlighted)
(ruby-recognize-symbols-starting-with-at-character)
(ruby-hash-character-not-interpolation)
(ruby-interpolation-suppresses-quotes-inside)
(ruby-interpolation-suppresses-one-double-quote)
(ruby-interpolation-inside-percent-literal)
(ruby-interpolation-inside-percent-literal-with-paren)
(ruby-interpolation-inside-another-interpolation)
(ruby-interpolation-inside-double-quoted-percent-literals)
(ruby-no-interpolation-in-single-quoted-literals):
Don't use above obsolete variables.
* lisp/progmodes/cc-fonts.el (font-lock-constant-face): Don't
declare now-unused variable.
2024-12-18 03:48:35 +01:00
..
ChangeLog.1 ; Fix typos 2024-07-18 11:46:50 +02:00
ob-awk.el Update to Org 9.7.4-7-g165319 2024-06-15 14:31:02 -04:00
ob-C.el Update to Org 9.7.4-7-g165319 2024-06-15 14:31:02 -04:00
ob-calc.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ob-clojure.el lisp/org: Backport org-mode.git fix for if-let/when-let obsolescence 2024-10-27 11:06:40 +08:00
ob-comint.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ob-core.el lisp/org: Backport org-mode.git fix for if-let/when-let obsolescence 2024-10-27 11:06:40 +08:00
ob-css.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ob-ditaa.el Update to Org 9.7.4-7-g165319 2024-06-15 14:31:02 -04:00
ob-dot.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ob-emacs-lisp.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ob-eshell.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ob-eval.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ob-exp.el lisp/org: Backport org-mode.git fix for if-let/when-let obsolescence 2024-10-27 11:06:40 +08:00
ob-forth.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ob-fortran.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ob-gnuplot.el Update to Org 9.7.11 2024-09-01 17:51:22 -04:00
ob-groovy.el Update to Org 9.7.4-7-g165319 2024-06-15 14:31:02 -04:00
ob-haskell.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ob-java.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ob-js.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ob-julia.el lisp/org: Backport org-mode.git fix for if-let/when-let obsolescence 2024-10-27 11:06:40 +08:00
ob-latex.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ob-lilypond.el ; Fix typos in symbols 2024-06-29 17:29:38 +02:00
ob-lisp.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ob-lob.el Checkdoc fixes in Org Mode 2024-07-07 17:46:25 +02:00
ob-lua.el * lisp/org/ob-lua.el: Minor doc fixes. 2024-06-18 21:27:51 +02:00
ob-makefile.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ob-matlab.el
ob-maxima.el Update to Org 9.7.4-7-g165319 2024-06-15 14:31:02 -04:00
ob-ocaml.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ob-octave.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ob-org.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ob-perl.el
ob-plantuml.el Checkdoc fixes in Org Mode 2024-07-07 17:46:25 +02:00
ob-processing.el Remove redundant requires 2024-07-04 23:55:16 +02:00
ob-python.el lisp/org: Backport org-mode.git fix for if-let/when-let obsolescence 2024-10-27 11:06:40 +08:00
ob-R.el lisp/org: Backport org-mode.git fix for if-let/when-let obsolescence 2024-10-27 11:06:40 +08:00
ob-ref.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ob-ruby.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ob-sass.el
ob-scheme.el Checkdoc fixes in Org Mode 2024-07-07 17:46:25 +02:00
ob-screen.el Update to Org 9.7.4-7-g165319 2024-06-15 14:31:02 -04:00
ob-sed.el Update to Org 9.7.4-7-g165319 2024-06-15 14:31:02 -04:00
ob-shell.el Update to Org 9.7.5-9-ga091ca 2024-06-27 23:55:35 -04:00
ob-sql.el Standardize possessive apostrophe usage in manuals, docs, and comments 2024-07-25 03:35:18 +02:00
ob-sqlite.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ob-table.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ob-tangle.el Checkdoc fixes in Org Mode 2024-07-07 17:46:25 +02:00
ob.el Checkdoc fixes in Org Mode 2024-07-07 17:46:25 +02:00
oc-basic.el ; Fix typos 2024-06-16 22:38:26 +02:00
oc-biblatex.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
oc-bibtex.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
oc-csl.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
oc-natbib.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
oc.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ol-bbdb.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ol-bibtex.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ol-docview.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ol-doi.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ol-eshell.el Remove obsolete 'display-comint-buffer-action' (bug#74361) 2024-12-04 09:40:33 +02:00
ol-eww.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ol-gnus.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ol-info.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ol-irc.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ol-man.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ol-mhe.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ol-rmail.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ol-w3m.el
ol.el lisp/org: Backport org-mode.git fix for if-let/when-let obsolescence 2024-10-27 11:06:40 +08:00
org-agenda.el Don't use obsolete filter-buffer-substring-functions in Org 2024-12-13 00:05:08 +01:00
org-archive.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
org-attach-git.el
org-attach.el lisp/org: Backport org-mode.git fix for if-let/when-let obsolescence 2024-10-27 11:06:40 +08:00
org-capture.el Update to Org 9.7.4-7-g165319 2024-06-15 14:31:02 -04:00
org-clock.el lisp/org: Backport org-mode.git fix for if-let/when-let obsolescence 2024-10-27 11:06:40 +08:00
org-colview.el Update to Org 9.7.5-9-ga091ca 2024-06-27 23:55:35 -04:00
org-compat.el lisp/org: Backport org-mode.git fix for if-let/when-let obsolescence 2024-10-27 11:06:40 +08:00
org-crypt.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
org-ctags.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
org-cycle.el ; Fix typos 2024-06-10 00:40:26 +02:00
org-datetree.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
org-duration.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
org-element-ast.el lisp/org: Backport org-mode.git fix for if-let/when-let obsolescence 2024-10-27 11:06:40 +08:00
org-element.el lisp/org: Backport org-mode.git fix for if-let/when-let obsolescence 2024-10-27 11:06:40 +08:00
org-entities.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
org-faces.el Checkdoc fixes in Org Mode 2024-07-07 17:46:25 +02:00
org-feed.el Remove redundant requires 2024-07-04 23:55:16 +02:00
org-fold-core.el ; Fix typos 2024-07-18 11:46:50 +02:00
org-fold.el Checkdoc fixes in Org Mode 2024-07-07 17:46:25 +02:00
org-footnote.el ; Fix typos 2024-06-10 00:40:26 +02:00
org-goto.el lisp/org: Backport org-mode.git fix for if-let/when-let obsolescence 2024-10-27 11:06:40 +08:00
org-habit.el Checkdoc fixes in Org Mode 2024-07-07 17:46:25 +02:00
org-id.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
org-indent.el Don't use obsolete filter-buffer-substring-functions in Org 2024-12-13 00:05:08 +01:00
org-inlinetask.el Checkdoc fixes in Org Mode 2024-07-07 17:46:25 +02:00
org-keys.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
org-lint.el lisp/org: Backport org-mode.git fix for if-let/when-let obsolescence 2024-10-27 11:06:40 +08:00
org-list.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
org-macro.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
org-macs.el lisp/org: Backport org-mode.git fix for if-let/when-let obsolescence 2024-10-27 11:06:40 +08:00
org-mobile.el Checkdoc fixes in Org Mode 2024-07-07 17:46:25 +02:00
org-mouse.el Checkdoc fixes in Org Mode 2024-07-07 17:46:25 +02:00
org-num.el Update to Org 9.7.4-7-g165319 2024-06-15 14:31:02 -04:00
org-pcomplete.el ; Fix typos 2024-06-10 00:40:26 +02:00
org-persist.el lisp/org: Backport org-mode.git fix for if-let/when-let obsolescence 2024-10-27 11:06:40 +08:00
org-plot.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
org-protocol.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
org-refile.el Checkdoc fixes in Org Mode 2024-07-07 17:46:25 +02:00
org-src.el Standardize possessive apostrophe usage in manuals, docs, and comments 2024-07-25 03:35:18 +02:00
org-table.el Make font-lock face variables obsolete 2024-12-18 03:48:35 +01:00
org-tempo.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
org-timer.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
org-version.el Update to Org 9.7.11 2024-09-01 17:51:22 -04:00
org.el lisp/org: Backport org-mode.git fix for if-let/when-let obsolescence 2024-10-27 11:06:40 +08:00
ox-ascii.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ox-beamer.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ox-html.el lisp/org: Backport org-mode.git fix for if-let/when-let obsolescence 2024-10-27 11:06:40 +08:00
ox-icalendar.el Checkdoc fixes in Org Mode 2024-07-07 17:46:25 +02:00
ox-koma-letter.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ox-latex.el lisp/org: Backport org-mode.git fix for if-let/when-let obsolescence 2024-10-27 11:06:40 +08:00
ox-man.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ox-md.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ox-odt.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ox-org.el Update to Org 9.7.3 2024-06-09 16:54:38 -04:00
ox-publish.el Checkdoc fixes in Org Mode 2024-07-07 17:46:25 +02:00
ox-texinfo.el * lisp/org/ox-texinfo.el (org-texinfo-template): Fix direntry format 2024-12-13 16:14:45 -05:00
ox.el lisp/org: Backport org-mode.git fix for if-let/when-let obsolescence 2024-10-27 11:06:40 +08:00