# HG changeset patch # User Richard M. Stallman # Date 1029203322 0 # Node ID 543ab39f153c1a30cb9a1a75326ade91ce290ac7 # Parent b1f8aec6c62b59cc11d8482524a08f20ffa46c9d (toggle-truncate-lines): Force redisplay. Display status message. diff -r b1f8aec6c62b -r 543ab39f153c lisp/simple.el --- a/lisp/simple.el Mon Aug 12 22:53:46 2002 +0000 +++ b/lisp/simple.el Tue Aug 13 01:48:42 2002 +0000 @@ -3195,12 +3195,16 @@ (defun toggle-truncate-lines (arg) "Toggle whether to fold or truncate long lines on the screen. -With arg, truncate long lines iff arg is positive." +With arg, truncate long lines iff arg is positive. +Note that in side-by-side windows, truncation is always enabled." (interactive "P") (setq truncate-lines (if (null arg) (not truncate-lines) - (> (prefix-numeric-value arg) 0)))) + (> (prefix-numeric-value arg) 0))) + (force-mode-line-update) + (message "Truncate long lines %s" + (if truncate-lines "enabled" "disabled"))) (defvar overwrite-mode-textual " Ovwrt" "The string displayed in the mode line when in overwrite mode.")