diff options
| author | Chong Yidong | 2010-12-28 17:39:25 +0800 |
|---|---|---|
| committer | Chong Yidong | 2010-12-28 17:39:25 +0800 |
| commit | c940c05468b5ab2a203bd8043f0d4f4f3bf56958 (patch) | |
| tree | bede8ca9491891c36111e0028ac801d7e90b5f46 | |
| parent | 4c145d5d06aff906d311f95bff3ccc2cb424580a (diff) | |
| download | emacs-c940c05468b5ab2a203bd8043f0d4f4f3bf56958.tar.gz emacs-c940c05468b5ab2a203bd8043f0d4f4f3bf56958.zip | |
Fix 2010-12-20 change to tool-bar.el.
* tool-bar.el (tool-bar-setup): Remove :enable conditions, which
are handled by the menu-bar entries. As before, don't use
:visibile to avoid changing the tool-bar.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/tool-bar.el | 18 |
2 files changed, 10 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d4023ba55cd..c0ec2bb8ae1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-12-28 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * tool-bar.el (tool-bar-setup): Remove :enable conditions, which | ||
| 4 | are handled by the menu-bar entries. As before, don't use | ||
| 5 | :visibile to avoid changing the tool-bar. | ||
| 6 | |||
| 1 | 2010-12-27 Michael Albinus <michael.albinus@gmx.de> | 7 | 2010-12-27 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 8 | ||
| 3 | * net/secrets.el (secrets-delete-alias): New defun. | 9 | * net/secrets.el (secrets-delete-alias): New defun. |
diff --git a/lisp/tool-bar.el b/lisp/tool-bar.el index e819cbe99a8..fa16381bf29 100644 --- a/lisp/tool-bar.el +++ b/lisp/tool-bar.el | |||
| @@ -252,26 +252,16 @@ holds a keymap." | |||
| 252 | (tool-bar-add-item-from-menu 'dired "diropen" nil :vert-only t) | 252 | (tool-bar-add-item-from-menu 'dired "diropen" nil :vert-only t) |
| 253 | (tool-bar-add-item-from-menu 'kill-this-buffer "close" nil :vert-only t) | 253 | (tool-bar-add-item-from-menu 'kill-this-buffer "close" nil :vert-only t) |
| 254 | (tool-bar-add-item-from-menu 'save-buffer "save" nil | 254 | (tool-bar-add-item-from-menu 'save-buffer "save" nil |
| 255 | :label "Save" | 255 | :label "Save") |
| 256 | :enable '(or buffer-file-name | ||
| 257 | (not (eq 'special | ||
| 258 | (get major-mode | ||
| 259 | 'mode-class))))) | ||
| 260 | (define-key-after (default-value 'tool-bar-map) [separator-1] menu-bar-separator) | 256 | (define-key-after (default-value 'tool-bar-map) [separator-1] menu-bar-separator) |
| 261 | (tool-bar-add-item-from-menu 'undo "undo" nil :vert-only t | 257 | (tool-bar-add-item-from-menu 'undo "undo" nil :vert-only t) |
| 262 | :enable '(not (eq 'special (get major-mode | ||
| 263 | 'mode-class)))) | ||
| 264 | (define-key-after (default-value 'tool-bar-map) [separator-2] menu-bar-separator) | 258 | (define-key-after (default-value 'tool-bar-map) [separator-2] menu-bar-separator) |
| 265 | (tool-bar-add-item-from-menu (lookup-key menu-bar-edit-menu [cut]) | 259 | (tool-bar-add-item-from-menu (lookup-key menu-bar-edit-menu [cut]) |
| 266 | "cut" nil :vert-only t | 260 | "cut" nil :vert-only t) |
| 267 | :enable '(not (eq 'special (get major-mode | ||
| 268 | 'mode-class)))) | ||
| 269 | (tool-bar-add-item-from-menu (lookup-key menu-bar-edit-menu [copy]) | 261 | (tool-bar-add-item-from-menu (lookup-key menu-bar-edit-menu [copy]) |
| 270 | "copy" nil :vert-only t) | 262 | "copy" nil :vert-only t) |
| 271 | (tool-bar-add-item-from-menu (lookup-key menu-bar-edit-menu [paste]) | 263 | (tool-bar-add-item-from-menu (lookup-key menu-bar-edit-menu [paste]) |
| 272 | "paste" nil :vert-only t | 264 | "paste" nil :vert-only t) |
| 273 | :enable '(not (eq 'special (get major-mode | ||
| 274 | 'mode-class)))) | ||
| 275 | (define-key-after (default-value 'tool-bar-map) [separator-3] menu-bar-separator) | 265 | (define-key-after (default-value 'tool-bar-map) [separator-3] menu-bar-separator) |
| 276 | (tool-bar-add-item-from-menu 'nonincremental-search-forward "search" | 266 | (tool-bar-add-item-from-menu 'nonincremental-search-forward "search" |
| 277 | nil :label "Search") | 267 | nil :label "Search") |