diff options
| author | Chong Yidong | 2008-07-21 18:14:23 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-07-21 18:14:23 +0000 |
| commit | c58140f4b04f96d7aea24f035c33f3385992c76b (patch) | |
| tree | ad17709db1f77ad91c02d84528dd8f3c6bef2adc | |
| parent | 844b9239ba59fe79952165b709bbb31013adbf41 (diff) | |
| download | emacs-c58140f4b04f96d7aea24f035c33f3385992c76b.tar.gz emacs-c58140f4b04f96d7aea24f035c33f3385992c76b.zip | |
(visual-line-mode): Disable truncate-partial-width-windows.
| -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 66541973a7e..c242f46bb89 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -4516,12 +4516,16 @@ This also turns on `word-wrap' in the buffer." | |||
| 4516 | (if visual-line-mode | 4516 | (if visual-line-mode |
| 4517 | (progn | 4517 | (progn |
| 4518 | (set (make-local-variable 'line-move-visual) t) | 4518 | (set (make-local-variable 'line-move-visual) t) |
| 4519 | (setq word-wrap t) | 4519 | (set (make-local-variable 'truncate-partial-width-windows) nil) |
| 4520 | (setq fringe-indicator-alist | 4520 | (setq truncate-lines nil |
| 4521 | word-wrap t | ||
| 4522 | fringe-indicator-alist | ||
| 4521 | (cons (cons 'continuation visual-line-fringe-indicators) | 4523 | (cons (cons 'continuation visual-line-fringe-indicators) |
| 4522 | fringe-indicator-alist))) | 4524 | fringe-indicator-alist))) |
| 4523 | (kill-local-variable 'line-move-visual) | 4525 | (kill-local-variable 'line-move-visual) |
| 4524 | (kill-local-variable 'word-wrap) | 4526 | (kill-local-variable 'word-wrap) |
| 4527 | (kill-local-variable 'truncate-lines) | ||
| 4528 | (kill-local-variable 'truncate-partial-width-windows) | ||
| 4525 | (kill-local-variable 'fringe-indicator-alist))) | 4529 | (kill-local-variable 'fringe-indicator-alist))) |
| 4526 | 4530 | ||
| 4527 | (defun turn-on-visual-line-mode () | 4531 | (defun turn-on-visual-line-mode () |