diff options
| author | Po Lu | 2024-04-29 08:49:28 +0800 |
|---|---|---|
| committer | Po Lu | 2024-04-29 08:49:47 +0800 |
| commit | 8cd9ca22362f8646e7717d2a18bcdb86780f423a (patch) | |
| tree | 8001f9b76e13b264f95612d09f1e65205f2fbed1 | |
| parent | f2bccae22bd47a2e7e0937b78ea06131711b935a (diff) | |
| download | emacs-8cd9ca22362f8646e7717d2a18bcdb86780f423a.tar.gz emacs-8cd9ca22362f8646e7717d2a18bcdb86780f423a.zip | |
Fix NEWS entries and documentation for underline styles
* doc/lispref/display.texi (Face Attributes):
* etc/NEWS: Revise to not mislead users as to where these
attributes are available.
| -rw-r--r-- | doc/lispref/display.texi | 14 | ||||
| -rw-r--r-- | etc/NEWS | 24 |
2 files changed, 19 insertions, 19 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 8425aa23422..011738df268 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -2687,12 +2687,14 @@ meaning the foreground color of the face. Omitting the attribute | |||
| 2687 | @code{:color} means to use the foreground color of the face. | 2687 | @code{:color} means to use the foreground color of the face. |
| 2688 | @var{style} is a symbol which sets the line-style to of the underline. | 2688 | @var{style} is a symbol which sets the line-style to of the underline. |
| 2689 | It should be one of @code{line}, @code{double-line}, @code{wave}, | 2689 | It should be one of @code{line}, @code{double-line}, @code{wave}, |
| 2690 | @code{dots}, or @code{dashes}. GUI frames only support @code{line} and | 2690 | @code{dots}, or @code{dashes}. GUI frames under most window systems |
| 2691 | @code{wave}. Terminal frames can support all aforementioned underline | 2691 | support all the aforementioned underline styles, while on text terminals |
| 2692 | styles. Omitting the attribute @code{:style} means to use a straight | 2692 | @code{double-line}, @code{wave} and @code{dots} are contingent on the |
| 2693 | line. @var{position}, if non-@code{nil}, means to display the underline | 2693 | availability of the @code{Smulx} or @code{Su} terminfo capabilities. |
| 2694 | at the descent of the text, instead of at the baseline level. If it is | 2694 | Omitting the attribute @code{:style} means to use a straight line. |
| 2695 | a number, then it specifies the amount of pixels above the descent to | 2695 | @var{position}, if non-@code{nil}, means to display the underline at the |
| 2696 | descent of the text, instead of at the baseline level. If it is a | ||
| 2697 | number, then it specifies the amount of pixels above the descent to | ||
| 2696 | display the underline. | 2698 | display the underline. |
| 2697 | @end table | 2699 | @end table |
| 2698 | 2700 | ||
| @@ -446,21 +446,19 @@ Use 'TAB' in the minibuffer to show or hide the password. Likewise, | |||
| 446 | there is an icon on the mode-line, which toggles the visibility of the | 446 | there is an icon on the mode-line, which toggles the visibility of the |
| 447 | password when clicking with 'mouse-1'. | 447 | password when clicking with 'mouse-1'. |
| 448 | 448 | ||
| 449 | ** Terminal Emacs | 449 | +++ |
| 450 | ** Support for styled underline face attributes. | ||
| 451 | These are implemented as new values of the 'style' attribute in a face | ||
| 452 | underline specification, 'double-line', 'dots', and 'dashes', and are | ||
| 453 | available on GUI systems. If your terminal's termcap or terminfo | ||
| 454 | database entry defines the 'Su' or 'Smulx' capability, Emacs will also | ||
| 455 | emit the prescribed escape sequence to render faces with such styles on | ||
| 456 | TTY frames. | ||
| 450 | 457 | ||
| 451 | --- | 458 | --- |
| 452 | *** Support for 'styled' and 'colored' underline face attributes on TTY frames. | 459 | ** Support for underline colors on TTY frames. |
| 453 | If your terminals termcap or terminfo database entry has the 'Su' or | 460 | Colors specified in face underlines will now also be displayed in TTY |
| 454 | 'Smulx' capability defined, Emacs will now emit the prescribed escape | 461 | frames with the previously mentioned capabilities. |
| 455 | sequence necessary to render faces with styled underlines on TTY | ||
| 456 | frames. | ||
| 457 | |||
| 458 | Styled underlines are any underlines containing a non-default | ||
| 459 | underline style or a color other than the foreground-color. | ||
| 460 | The available underline styles for TTY frames are 'single', | ||
| 461 | 'double-line', 'wave', 'dots, and 'dashes'. These are currently | ||
| 462 | supported by Kitty, libvte, and st (through the undercurl patch) among | ||
| 463 | other terminals. | ||
| 464 | 462 | ||
| 465 | 463 | ||
| 466 | * Editing Changes in Emacs 30.1 | 464 | * Editing Changes in Emacs 30.1 |