diff options
| -rw-r--r-- | doc/emacs/display.texi | 1 | ||||
| -rw-r--r-- | doc/emacs/windows.texi | 12 | ||||
| -rw-r--r-- | src/xdisp.c | 7 |
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 | |||
| 1601 | makes it local to the current buffer; until that time, the default | 1601 | makes it local to the current buffer; until that time, the default |
| 1602 | value, which is normally @code{nil}, is in effect. | 1602 | value, 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 |
| 1606 | line truncation. @xref{Split Window}, for the variable | 1605 | line 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 | |||
| 117 | instead controlled by the variable | 117 | instead 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 |
| 119 | is a positive integer (the default is 50), that specifies the minimum | 119 | is a positive integer (the default is 50), that specifies the minimum |
| 120 | width for a partial-width window before automatic line truncation | 120 | total width for a partial-width window before automatic line |
| 121 | occurs; if the value is @code{nil}, automatic line truncation is | 121 | truncation occurs; if the value is @code{nil}, automatic line |
| 122 | disabled; and for any other non-@code{nil} value, Emacs truncates | 122 | truncation is disabled; and for any other non-@code{nil} value, Emacs |
| 123 | lines in every partial-width window regardless of its width. | 123 | truncates lines in every partial-width window regardless of its width. |
| 124 | The total width of a window is in column units as reported by | ||
| 125 | @code{window-total-width} (@pxref{Window Sizes,,, elisp, The Emacs | ||
| 126 | Lisp Reference Manual}), it includes the fringes, the continuation and | ||
| 127 | truncation 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 |
| 126 | divider which is drawn using the @code{vertical-border} face. | 130 | divider 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. |
| 31424 | For an integer value, truncate lines in each window narrower than the | 31424 | For an integer value, truncate lines in each window narrower than the |
| 31425 | full frame width, provided the window width is less than that integer; | 31425 | full frame width, provided the total window width in column units is less |
| 31426 | otherwise, respect the value of `truncate-lines'. | 31426 | than that integer; otherwise, respect the value of `truncate-lines'. |
| 31427 | The total width of the window is as returned by `window-total-width', it | ||
| 31428 | includes the fringes, the continuation and truncation glyphs, the | ||
| 31429 | display margins (if any), and the scroll bar | ||
| 31427 | 31430 | ||
| 31428 | For any other non-nil value, truncate lines in all windows that do | 31431 | For any other non-nil value, truncate lines in all windows that do |
| 31429 | not span the full frame width. | 31432 | not span the full frame width. |