diff options
Diffstat (limited to 'doc/lispref/display.texi')
-rw-r--r-- | doc/lispref/display.texi | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index e229935170f..34f215820ed 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi @@ -1,6 +1,6 @@ @c -*- mode: texinfo; coding: utf-8 -*- @c This is part of the GNU Emacs Lisp Reference Manual. -@c Copyright (C) 1990--1995, 1998--2023 Free Software Foundation, Inc. +@c Copyright (C) 1990--1995, 1998--2024 Free Software Foundation, Inc. @c See the file elisp.texi for copying conditions. @node Display @chapter Emacs Display @@ -2726,7 +2726,7 @@ Draw a box with lines of width 1, in color @var{color}. You can explicitly specify all aspects of the box with a plist on this form. Any element in this plist can be omitted. -The values @var{vwidth} and @var{hwidth} specifies respectively the +The values of @var{vwidth} and @var{hwidth} specify respectively the width of the vertical and horizontal lines to draw; they default to (1 . 1). A negative horizontal or vertical width @minus{}@var{n} means to draw a line of width @var{n} that occupies the space of the @@ -2735,16 +2735,16 @@ width. For simplification the width could be specified with only a single number @var{n} instead of a list, such case is equivalent to @code{((abs @var{n}) . @var{n})}. -The value @var{style} specifies whether to draw a 3D box. If it is +The value of @var{color} specifies the color to draw with. The default +is the background color of the face for 3D boxes and +@code{flat-button}, and the foreground color of the face for other +boxes. + +The value of @var{style} specifies whether to draw a 3D box. If it is @code{released-button}, the box looks like a 3D button that is not being pressed. If it is @code{pressed-button}, the box looks like a 3D button that is being pressed. If it is @code{nil}, @code{flat-button} or omitted, a plain 2D box is used. - -The value @var{color} specifies the color to draw with. The default -is the background color of the face for 3D boxes and -@code{flat-button}, and the foreground color of the face for other -boxes. @end table @item :inverse-video @@ -5287,10 +5287,18 @@ the ``pixel width'' of a character is usually 1, but it could be more for TABs and double-width CJK characters.) @item :align-to @var{hpos} -Specifies that the space should be wide enough to reach @var{hpos}. -If @var{hpos} is a number, it is measured in units of the normal -character width. @var{hpos} can also be a @dfn{pixel width} -specification (@pxref{Pixel Specification}). +Specifies that the space should be wide enough to reach the column +@var{hpos}. If @var{hpos} is a number, it is a column number, and is +measured in units of the canonical character width (@pxref{Frame +Font}). @var{hpos} can also be a @dfn{pixel width} specification +(@pxref{Pixel Specification}). When the current line is wider than +the window, and is either displayed by one or more continuation lines, +or is truncated and possibly scrolled horizontally (@pxref{Horizontal +Scrolling}), @var{hpos} is measured from the beginning of the logical +line, not from the visual beginning of the screen line. This way, +alignment produced by @code{:align-to} is consistent with functions +that count columns, such as @code{current-column} and +@code{move-to-column} (@pxref{Columns}). @end table You should use one and only one of the above properties. You can |