aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPo Lu2024-04-29 08:49:28 +0800
committerPo Lu2024-04-29 08:49:47 +0800
commit8cd9ca22362f8646e7717d2a18bcdb86780f423a (patch)
tree8001f9b76e13b264f95612d09f1e65205f2fbed1
parentf2bccae22bd47a2e7e0937b78ea06131711b935a (diff)
downloademacs-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.texi14
-rw-r--r--etc/NEWS24
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.
2689It should be one of @code{line}, @code{double-line}, @code{wave}, 2689It 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 2691support all the aforementioned underline styles, while on text terminals
2692styles. Omitting the attribute @code{:style} means to use a straight 2692@code{double-line}, @code{wave} and @code{dots} are contingent on the
2693line. @var{position}, if non-@code{nil}, means to display the underline 2693availability of the @code{Smulx} or @code{Su} terminfo capabilities.
2694at the descent of the text, instead of at the baseline level. If it is 2694Omitting the attribute @code{:style} means to use a straight line.
2695a 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
2696descent of the text, instead of at the baseline level. If it is a
2697number, then it specifies the amount of pixels above the descent to
2696display the underline. 2698display the underline.
2697@end table 2699@end table
2698 2700
diff --git a/etc/NEWS b/etc/NEWS
index 7efb4110bcd..d8bc3c9d725 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -446,21 +446,19 @@ Use 'TAB' in the minibuffer to show or hide the password. Likewise,
446there is an icon on the mode-line, which toggles the visibility of the 446there is an icon on the mode-line, which toggles the visibility of the
447password when clicking with 'mouse-1'. 447password when clicking with 'mouse-1'.
448 448
449** Terminal Emacs 449+++
450** Support for styled underline face attributes.
451These are implemented as new values of the 'style' attribute in a face
452underline specification, 'double-line', 'dots', and 'dashes', and are
453available on GUI systems. If your terminal's termcap or terminfo
454database entry defines the 'Su' or 'Smulx' capability, Emacs will also
455emit the prescribed escape sequence to render faces with such styles on
456TTY 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.
453If your terminals termcap or terminfo database entry has the 'Su' or 460Colors specified in face underlines will now also be displayed in TTY
454'Smulx' capability defined, Emacs will now emit the prescribed escape 461frames with the previously mentioned capabilities.
455sequence necessary to render faces with styled underlines on TTY
456frames.
457
458Styled underlines are any underlines containing a non-default
459underline style or a color other than the foreground-color.
460The available underline styles for TTY frames are 'single',
461'double-line', 'wave', 'dots, and 'dashes'. These are currently
462supported by Kitty, libvte, and st (through the undercurl patch) among
463other terminals.
464 462
465 463
466* Editing Changes in Emacs 30.1 464* Editing Changes in Emacs 30.1