diff options
| -rw-r--r-- | lisp/simple.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 6b2700f5b7f..ff10343b597 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -3195,12 +3195,16 @@ The variable `selective-display' has a separate value for each buffer." | |||
| 3195 | 3195 | ||
| 3196 | (defun toggle-truncate-lines (arg) | 3196 | (defun toggle-truncate-lines (arg) |
| 3197 | "Toggle whether to fold or truncate long lines on the screen. | 3197 | "Toggle whether to fold or truncate long lines on the screen. |
| 3198 | With arg, truncate long lines iff arg is positive." | 3198 | With arg, truncate long lines iff arg is positive. |
| 3199 | Note that in side-by-side windows, truncation is always enabled." | ||
| 3199 | (interactive "P") | 3200 | (interactive "P") |
| 3200 | (setq truncate-lines | 3201 | (setq truncate-lines |
| 3201 | (if (null arg) | 3202 | (if (null arg) |
| 3202 | (not truncate-lines) | 3203 | (not truncate-lines) |
| 3203 | (> (prefix-numeric-value arg) 0)))) | 3204 | (> (prefix-numeric-value arg) 0))) |
| 3205 | (force-mode-line-update) | ||
| 3206 | (message "Truncate long lines %s" | ||
| 3207 | (if truncate-lines "enabled" "disabled"))) | ||
| 3204 | 3208 | ||
| 3205 | (defvar overwrite-mode-textual " Ovwrt" | 3209 | (defvar overwrite-mode-textual " Ovwrt" |
| 3206 | "The string displayed in the mode line when in overwrite mode.") | 3210 | "The string displayed in the mode line when in overwrite mode.") |