aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/emacs/display.texi1
-rw-r--r--doc/emacs/windows.texi12
-rw-r--r--src/xdisp.c7
3 files changed, 13 insertions, 7 deletions
diff --git a/doc/emacs/display.texi b/doc/emacs/display.texi
index c8987c279c5..01f899f1c09 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
1601makes it local to the current buffer; until that time, the default 1601makes it local to the current buffer; until that time, the default
1602value, which is normally @code{nil}, is in effect. 1602value, which is normally @code{nil}, is in effect.
1603 1603
1604@vindex truncate-partial-width-windows
1605 If a split window becomes too narrow, Emacs may automatically enable 1604 If a split window becomes too narrow, Emacs may automatically enable
1606line truncation. @xref{Split Window}, for the variable 1605line truncation. @xref{Split Window}, for the variable
1607@code{truncate-partial-width-windows} which controls this. 1606@code{truncate-partial-width-windows} which controls this.
diff --git a/doc/emacs/windows.texi b/doc/emacs/windows.texi
index 7587f885a23..702963f75c5 100644
--- a/doc/emacs/windows.texi
+++ b/doc/emacs/windows.texi
@@ -117,10 +117,14 @@ variable @code{truncate-lines} (@pxref{Line Truncation}); it is
117instead controlled by the variable 117instead controlled by the variable
118@code{truncate-partial-width-windows}. If the value of this variable 118@code{truncate-partial-width-windows}. If the value of this variable
119is a positive integer (the default is 50), that specifies the minimum 119is a positive integer (the default is 50), that specifies the minimum
120width for a partial-width window before automatic line truncation 120total width for a partial-width window before automatic line
121occurs; if the value is @code{nil}, automatic line truncation is 121truncation occurs; if the value is @code{nil}, automatic line
122disabled; and for any other non-@code{nil} value, Emacs truncates 122truncation is disabled; and for any other non-@code{nil} value, Emacs
123lines in every partial-width window regardless of its width. 123truncates lines in every partial-width window regardless of its width.
124The total width of a window is in column units as reported by
125@code{window-total-width} (@pxref{Window Sizes,,, elisp, The Emacs
126Lisp Reference Manual}), it includes the fringes, the continuation and
127truncation glyphs, the margins, and the scroll bar.
124 128
125 On text terminals, side-by-side windows are separated by a vertical 129 On text terminals, side-by-side windows are separated by a vertical
126divider which is drawn using the @code{vertical-border} face. 130divider which is drawn using the @code{vertical-border} face.
diff --git a/src/xdisp.c b/src/xdisp.c
index d6ee2de8f39..d701306b22c 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -31422,8 +31422,11 @@ Value is a number or a cons (WIDTH-DPI . HEIGHT-DPI). */);
31422 Vtruncate_partial_width_windows, 31422 Vtruncate_partial_width_windows,
31423 doc: /* Non-nil means truncate lines in windows narrower than the frame. 31423 doc: /* Non-nil means truncate lines in windows narrower than the frame.
31424For an integer value, truncate lines in each window narrower than the 31424For an integer value, truncate lines in each window narrower than the
31425full frame width, provided the window width is less than that integer; 31425full frame width, provided the total window width in column units is less
31426otherwise, respect the value of `truncate-lines'. 31426than that integer; otherwise, respect the value of `truncate-lines'.
31427The total width of the window is as returned by `window-total-width', it
31428includes the fringes, the continuation and truncation glyphs, the
31429display margins (if any), and the scroll bar
31427 31430
31428For any other non-nil value, truncate lines in all windows that do 31431For any other non-nil value, truncate lines in all windows that do
31429not span the full frame width. 31432not span the full frame width.