diff options
| author | Eli Zaretskii | 2023-08-03 08:31:17 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2023-08-03 08:31:17 +0300 |
| commit | 6eddbfe33f2ff07f186da14f8974e742bf3ca2ae (patch) | |
| tree | a65d1b14e11fb0d9171998ee5604565989ada482 /doc/lispref | |
| parent | 5c6a51668b0917aa1e014cbfa7bfcf703a4e7048 (diff) | |
| download | emacs-6eddbfe33f2ff07f186da14f8974e742bf3ca2ae.tar.gz emacs-6eddbfe33f2ff07f186da14f8974e742bf3ca2ae.zip | |
Clarify the meaning of the argument of ':align-to' space spec
* doc/lispref/display.texi (Specified Space): Clarify the meaning
and measurement of HPOS in ':align-to' space specs. (Bug#65015)
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/display.texi | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index e229935170f..50a91066d1d 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -5287,10 +5287,18 @@ the ``pixel width'' of a character is usually 1, but it could be more | |||
| 5287 | for TABs and double-width CJK characters.) | 5287 | for TABs and double-width CJK characters.) |
| 5288 | 5288 | ||
| 5289 | @item :align-to @var{hpos} | 5289 | @item :align-to @var{hpos} |
| 5290 | Specifies that the space should be wide enough to reach @var{hpos}. | 5290 | Specifies that the space should be wide enough to reach the column |
| 5291 | If @var{hpos} is a number, it is measured in units of the normal | 5291 | @var{hpos}. If @var{hpos} is a number, it is a column number, and is |
| 5292 | character width. @var{hpos} can also be a @dfn{pixel width} | 5292 | measured in units of the canonical character width (@pxref{Frame |
| 5293 | specification (@pxref{Pixel Specification}). | 5293 | Font}). @var{hpos} can also be a @dfn{pixel width} specification |
| 5294 | (@pxref{Pixel Specification}). When the current line is wider than | ||
| 5295 | the window, and is either displayed by one or more continuation lines, | ||
| 5296 | or is truncated and possibly scrolled horizontally (@pxref{Horizontal | ||
| 5297 | Scrolling}), @var{hpos} is measured from the beginning of the logical | ||
| 5298 | line, not from the visual beginning of the screen line. This way, | ||
| 5299 | alignment produced by @code{:align-to} is consistent with functions | ||
| 5300 | that count columns, such as @code{current-column} and | ||
| 5301 | @code{move-to-column} (@pxref{Columns}). | ||
| 5294 | @end table | 5302 | @end table |
| 5295 | 5303 | ||
| 5296 | You should use one and only one of the above properties. You can | 5304 | You should use one and only one of the above properties. You can |