]> git.eshelyaron.com Git - emacs.git/commitdiff
; Improve documentation of ':box' face attribute
authorEli Zaretskii <eliz@gnu.org>
Sat, 30 Nov 2024 10:44:01 +0000 (12:44 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 4 Dec 2024 17:01:27 +0000 (18:01 +0100)
* doc/lispref/display.texi (Face Attributes): Describe a subtlety
of displaying ':box'.  (Bug#74536)

(cherry picked from commit afb34a3b2393decb50e250ed8caa559b64020379)

doc/lispref/display.texi

index 0d66315f0cc5be2879c711c48d6d930bac9ee4d4..1540745325dbd55ae0d18b182c954482d23bbb52 100644 (file)
@@ -2801,7 +2801,11 @@ being pressed.  If it is @code{pressed-button}, the box looks like a
 If you use the @code{:box} face attribute on strings displayed instead
 of buffer text via the @code{display} text property, special
 considerations might apply if the surrounding buffer text also has the
-@code{:box} face attribute.  @xref{Replacing Specs}.
+@code{:box} face attribute.  @xref{Replacing Specs}.  Also note that the
+vertical lines of the box are only drawn when @code{:box} attribute
+changes from @code{nil} to non-@code{nil} or vice versa; two consecutive
+face properties with a non-@code{nil} @code{:box} attribute will be
+displayed without the vertical line between them.
 
 @item :inverse-video
 Whether or not characters should be displayed in inverse video.  The