diff options
author | Eli Zaretskii <eliz@gnu.org> | 2016-03-26 10:17:12 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2016-03-26 10:17:12 +0300 |
commit | 8ee4c52abc98e6522d812a29cfe57ffbdeb98144 (patch) | |
tree | 460fdd7e8c21f5b2e2d044006808fdcf05f6253d /doc/emacs | |
parent | fb9a62c9c454df1a5c24b76b5d17ac13721f04d2 (diff) |
Improve documentatuon of 'truncate-partial-width-windows'
* src/xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>:
Clarify in the doc string how the width of partial-width windows
is computed for the purposes of truncation decision. (Bug#4338)
* doc/emacs/windows.texi (Split Window): Clarify how the width of
windows is calculated for the purposes of truncation decision.
* doc/emacs/display.texi (Line Truncation): Remove a redundant
index entry.
Diffstat (limited to 'doc/emacs')
-rw-r--r-- | doc/emacs/display.texi | 1 | ||||
-rw-r--r-- | doc/emacs/windows.texi | 12 |
2 files changed, 8 insertions, 5 deletions
diff --git a/doc/emacs/display.texi b/doc/emacs/display.texi index c8987c279c..01f899f1c0 100644 --- a/doc/emacs/display.texi +++ b/doc/emacs/display.texi @@ -1601,7 +1601,6 @@ screen lines. Setting the variable @code{truncate-lines} in any way makes it local to the current buffer; until that time, the default value, which is normally @code{nil}, is in effect. -@vindex truncate-partial-width-windows If a split window becomes too narrow, Emacs may automatically enable line truncation. @xref{Split Window}, for the variable @code{truncate-partial-width-windows} which controls this. diff --git a/doc/emacs/windows.texi b/doc/emacs/windows.texi index 7587f885a2..702963f75c 100644 --- a/doc/emacs/windows.texi +++ b/doc/emacs/windows.texi @@ -117,10 +117,14 @@ variable @code{truncate-lines} (@pxref{Line Truncation}); it is instead controlled by the variable @code{truncate-partial-width-windows}. If the value of this variable is a positive integer (the default is 50), that specifies the minimum -width for a partial-width window before automatic line truncation -occurs; if the value is @code{nil}, automatic line truncation is -disabled; and for any other non-@code{nil} value, Emacs truncates -lines in every partial-width window regardless of its width. +total width for a partial-width window before automatic line +truncation occurs; if the value is @code{nil}, automatic line +truncation is disabled; and for any other non-@code{nil} value, Emacs +truncates lines in every partial-width window regardless of its width. +The total width of a window is in column units as reported by +@code{window-total-width} (@pxref{Window Sizes,,, elisp, The Emacs +Lisp Reference Manual}), it includes the fringes, the continuation and +truncation glyphs, the margins, and the scroll bar. On text terminals, side-by-side windows are separated by a vertical divider which is drawn using the @code{vertical-border} face. |