* lisp/simple.el (toggle-truncate-lines): Disable
`visual-line-mode' (bug#29664).
(if (eq buffer (window-buffer window))
(set-window-hscroll window 0)))
nil t)))
- (message "Truncate long lines %s"
- (if truncate-lines "enabled" "disabled")))
+ (message "Truncate long lines %s%s"
+ (if truncate-lines "enabled" "disabled")
+ (if (and truncate-lines visual-line-mode)
+ (progn
+ (visual-line-mode -1)
+ (message " and `visual-line-mode' disabled"))
+ "")))
(defun toggle-word-wrap (&optional arg)
"Toggle whether to use word-wrapping for continuation lines.