diff options
| author | Glenn Morris | 2008-04-10 07:52:10 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-04-10 07:52:10 +0000 |
| commit | eda0be5a2c35ef3bcb0c1d11e2324fa7e90d1ef8 (patch) | |
| tree | ad79e27f28476d407730d930461ef8a961d71374 | |
| parent | 96a7394f2920e13177478628dda4da3916aeb6e6 (diff) | |
| download | emacs-eda0be5a2c35ef3bcb0c1d11e2324fa7e90d1ef8.tar.gz emacs-eda0be5a2c35ef3bcb0c1d11e2324fa7e90d1ef8.zip | |
(menu-bar-options-menu) <truncate-lines>:
Respect truncate-partial-width-windows in non-full windows, with regards to
:toggle and :enable state.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/menu-bar.el | 9 |
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6f7c05ce28d..84fa0a02a57 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -24,6 +24,10 @@ | |||
| 24 | 24 | ||
| 25 | 2008-04-10 Glenn Morris <rgm@gnu.org> | 25 | 2008-04-10 Glenn Morris <rgm@gnu.org> |
| 26 | 26 | ||
| 27 | * menu-bar.el (menu-bar-options-menu) <truncate-lines>: | ||
| 28 | Respect truncate-partial-width-windows in non-full windows, | ||
| 29 | with regards to :toggle and :enable state. | ||
| 30 | |||
| 27 | * simple.el (toggle-truncate-lines): Doc fix. | 31 | * simple.el (toggle-truncate-lines): Doc fix. |
| 28 | 32 | ||
| 29 | * Makefile.in (MH_E_DIR): New variable. | 33 | * Makefile.in (MH_E_DIR): New variable. |
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 2eaed4c5e34..00f76789b34 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -1050,8 +1050,13 @@ mail status in mode line")) | |||
| 1050 | '(menu-item "Truncate Long Lines in this Buffer" | 1050 | '(menu-item "Truncate Long Lines in this Buffer" |
| 1051 | toggle-truncate-lines | 1051 | toggle-truncate-lines |
| 1052 | :help "Truncate long lines on the screen" | 1052 | :help "Truncate long lines on the screen" |
| 1053 | :button (:toggle . truncate-lines) | 1053 | :button (:toggle . (if (or (window-full-width-p) |
| 1054 | :enable (menu-bar-menu-frame-live-and-visible-p))) | 1054 | (not truncate-partial-width-windows)) |
| 1055 | truncate-lines | ||
| 1056 | truncate-partial-width-windows)) | ||
| 1057 | :enable (and (menu-bar-menu-frame-live-and-visible-p) | ||
| 1058 | (or (window-full-width-p) | ||
| 1059 | (not truncate-partial-width-windows))))) | ||
| 1055 | 1060 | ||
| 1056 | (define-key menu-bar-options-menu [highlight-separator] | 1061 | (define-key menu-bar-options-menu [highlight-separator] |
| 1057 | '("--")) | 1062 | '("--")) |