aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2022-02-14 11:38:11 +0100
committerLars Ingebrigtsen2022-02-14 11:38:59 +0100
commitdaf008e82b8ca7681ebe08b6ac1a1fa4d873bcd2 (patch)
tree74de29aa31022cc0253edfd4919586110b7755e6
parentb47d36f189d067ebf41098021da1d1e160db9d53 (diff)
downloademacs-daf008e82b8ca7681ebe08b6ac1a1fa4d873bcd2.tar.gz
emacs-daf008e82b8ca7681ebe08b6ac1a1fa4d873bcd2.zip
Note caveat about remapping basic faces
* doc/lispref/display.texi (Face Remapping): Note caveat about basic faces (bug#53636).
-rw-r--r--doc/lispref/display.texi7
-rw-r--r--etc/NEWS6
2 files changed, 13 insertions, 0 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index b749d3d8922..280ea534555 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -3320,6 +3320,13 @@ if you need to remove the remapping later.
3320;; Increase the size of the 'default' face by 50%: 3320;; Increase the size of the 'default' face by 50%:
3321(face-remap-add-relative 'default :height 1.5) 3321(face-remap-add-relative 'default :height 1.5)
3322@end example 3322@end example
3323
3324Note that face remapping does not work reliably parent faces of
3325@dnf{basic faces}. (These are the faces that are used in mode lines,
3326header lines and the like.) For instance, @code{mode-line-inactive}
3327inherits from @code{mode-line}, but remapping @code{mode-line} won't
3328normally have the desired effect on @code{mode-line-inactive}.
3329Instead you have to remap @code{mode-line-inactive} directly.
3323@end defun 3330@end defun
3324 3331
3325@defun face-remap-remove-relative cookie 3332@defun face-remap-remove-relative cookie
diff --git a/etc/NEWS b/etc/NEWS
index cd8cec32d5d..657088c98de 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -992,6 +992,12 @@ Emacs buffers, like indentation and the like. The new ert function
992 992
993* Incompatible Lisp Changes in Emacs 29.1 993* Incompatible Lisp Changes in Emacs 29.1
994 994
995+++
996** Remapping 'mode-line' no longer works as expected.
997'mode-line' is now the parent face of the new 'mode-line-active' face,
998and remapping parent of basic faces does not work reliably.
999Instead of remapping 'mode-line', you have to remap 'mode-line-active'.
1000
995** User option 'mail-source-ignore-errors' is now obsolete. 1001** User option 'mail-source-ignore-errors' is now obsolete.
996The whole mechanism for prompting users to continue in case of 1002The whole mechanism for prompting users to continue in case of
997mail-source errors has been removed, so this option is no longer 1003mail-source errors has been removed, so this option is no longer