diff options
| author | Lars Ingebrigtsen | 2022-02-14 11:38:11 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-02-14 11:38:59 +0100 |
| commit | daf008e82b8ca7681ebe08b6ac1a1fa4d873bcd2 (patch) | |
| tree | 74de29aa31022cc0253edfd4919586110b7755e6 | |
| parent | b47d36f189d067ebf41098021da1d1e160db9d53 (diff) | |
| download | emacs-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.texi | 7 | ||||
| -rw-r--r-- | etc/NEWS | 6 |
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 | |||
| 3324 | Note that face remapping does not work reliably parent faces of | ||
| 3325 | @dnf{basic faces}. (These are the faces that are used in mode lines, | ||
| 3326 | header lines and the like.) For instance, @code{mode-line-inactive} | ||
| 3327 | inherits from @code{mode-line}, but remapping @code{mode-line} won't | ||
| 3328 | normally have the desired effect on @code{mode-line-inactive}. | ||
| 3329 | Instead 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 |
| @@ -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, | ||
| 998 | and remapping parent of basic faces does not work reliably. | ||
| 999 | Instead 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. |
| 996 | The whole mechanism for prompting users to continue in case of | 1002 | The whole mechanism for prompting users to continue in case of |
| 997 | mail-source errors has been removed, so this option is no longer | 1003 | mail-source errors has been removed, so this option is no longer |