diff options
| author | Richard M. Stallman | 2002-08-13 01:48:42 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-08-13 01:48:42 +0000 |
| commit | 46cdfe8f2e6f4e6c7ee61e9b9c8d7185598021a0 (patch) | |
| tree | 2ed2bd7710c96e86fb08e3227ce2af9c0bddcd0f | |
| parent | 90a4495712931eabb11afac73de8f6b189360ef3 (diff) | |
| download | emacs-46cdfe8f2e6f4e6c7ee61e9b9c8d7185598021a0.tar.gz emacs-46cdfe8f2e6f4e6c7ee61e9b9c8d7185598021a0.zip | |
(toggle-truncate-lines): Force redisplay. Display status message.
| -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.") |