diff options
| author | Per Abrahamsen | 2002-07-04 13:36:12 +0000 |
|---|---|---|
| committer | Per Abrahamsen | 2002-07-04 13:36:12 +0000 |
| commit | 0bb64d7645714890848c1ab1e07daa47039c7076 (patch) | |
| tree | 88a5fd20ff84c169816995e17cde739f356b3818 | |
| parent | cf9b6656ccf5d6f26d533b0a15970f15d585dffc (diff) | |
| download | emacs-0bb64d7645714890848c1ab1e07daa47039c7076.tar.gz emacs-0bb64d7645714890848c1ab1e07daa47039c7076.zip | |
2002-07-04 Per Abrahamsen <abraham@dina.kvl.dk>
* simple.el (toggle-truncate-lines): New command.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/simple.el | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b47761de024..00be3c05752 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2002-07-04 Per Abrahamsen <abraham@dina.kvl.dk> | ||
| 2 | |||
| 3 | * simple.el (toggle-truncate-lines): New command. | ||
| 4 | |||
| 1 | 2002-07-04 Miles Bader <miles@gnu.org> | 5 | 2002-07-04 Miles Bader <miles@gnu.org> |
| 2 | 6 | ||
| 3 | * comint.el (comint-displayed-dynamic-completions): New variable. | 7 | * comint.el (comint-displayed-dynamic-completions): New variable. |
diff --git a/lisp/simple.el b/lisp/simple.el index f3fbbec58a8..f2c4f24b404 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -3189,6 +3189,15 @@ The variable `selective-display' has a separate value for each buffer." | |||
| 3189 | (prin1 selective-display t) | 3189 | (prin1 selective-display t) |
| 3190 | (princ "." t)) | 3190 | (princ "." t)) |
| 3191 | 3191 | ||
| 3192 | (defun toggle-truncate-lines (arg) | ||
| 3193 | "Toggle whether to fold or truncate long lines on the screen. | ||
| 3194 | With arg, truncate long lines iff arg is positive." | ||
| 3195 | (interactive "P") | ||
| 3196 | (setq truncate-lines | ||
| 3197 | (if (null arg) | ||
| 3198 | (not truncate-lines) | ||
| 3199 | (> (prefix-numeric-value arg) 0)))) | ||
| 3200 | |||
| 3192 | (defvar overwrite-mode-textual " Ovwrt" | 3201 | (defvar overwrite-mode-textual " Ovwrt" |
| 3193 | "The string displayed in the mode line when in overwrite mode.") | 3202 | "The string displayed in the mode line when in overwrite mode.") |
| 3194 | (defvar overwrite-mode-binary " Bin Ovwrt" | 3203 | (defvar overwrite-mode-binary " Bin Ovwrt" |