diff options
| author | Per Abrahamsen | 2002-02-21 09:39:39 +0000 |
|---|---|---|
| committer | Per Abrahamsen | 2002-02-21 09:39:39 +0000 |
| commit | 929e8487010bb394bb6127f1a415ac5385e82e2b (patch) | |
| tree | 4ac034c2166ba2b464eda6b8db6015c5663d437c | |
| parent | ee803b5b6b616fdbcb60d2c83203a89e6cad058d (diff) | |
| download | emacs-929e8487010bb394bb6127f1a415ac5385e82e2b.tar.gz emacs-929e8487010bb394bb6127f1a415ac5385e82e2b.zip | |
2002-02-21 Per Abrahamsen <abraham@dina.kvl.dk>
* toolbar/tool-bar.el (tool-bar-mode): Revert the :init-value to
nil, and then explicitly set the standard-value to t.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/toolbar/tool-bar.el | 13 |
2 files changed, 17 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7fe2962690e..e6da0471a35 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2002-02-21 Per Abrahamsen <abraham@dina.kvl.dk> | ||
| 2 | |||
| 3 | * toolbar/tool-bar.el (tool-bar-mode): Revert the :init-value to | ||
| 4 | nil, and then explicitly set the standard-value to t. | ||
| 5 | |||
| 1 | 2002-02-20 Sam Steingold <sds@gnu.org> | 6 | 2002-02-20 Sam Steingold <sds@gnu.org> |
| 2 | 7 | ||
| 3 | * textmodes/flyspell.el (flyspell-mode): Autoload the variable | 8 | * textmodes/flyspell.el (flyspell-mode): Autoload the variable |
diff --git a/lisp/toolbar/tool-bar.el b/lisp/toolbar/tool-bar.el index 5f563be810a..e1dd537ad6b 100644 --- a/lisp/toolbar/tool-bar.el +++ b/lisp/toolbar/tool-bar.el | |||
| @@ -47,7 +47,7 @@ With numeric ARG, display the tool bar if and only if ARG is positive. | |||
| 47 | 47 | ||
| 48 | See `tool-bar-add-item' and `tool-bar-add-item-from-menu' for | 48 | See `tool-bar-add-item' and `tool-bar-add-item-from-menu' for |
| 49 | conveniently adding tool bar items." | 49 | conveniently adding tool bar items." |
| 50 | :init-value t | 50 | :init-value nil |
| 51 | :global t | 51 | :global t |
| 52 | :group 'mouse | 52 | :group 'mouse |
| 53 | :group 'frames | 53 | :group 'frames |
| @@ -68,6 +68,17 @@ conveniently adding tool bar items." | |||
| 68 | (= 1 (length (default-value 'tool-bar-map)))) ; not yet setup | 68 | (= 1 (length (default-value 'tool-bar-map)))) ; not yet setup |
| 69 | (tool-bar-setup)))) | 69 | (tool-bar-setup)))) |
| 70 | 70 | ||
| 71 | ;;;###autoload | ||
| 72 | ;; We want to pretend the toolbar by standard is on, as this will make | ||
| 73 | ;; customize consider disabling the toolbar a customization, and save | ||
| 74 | ;; that. We could do this for real by setting :init-value above, but | ||
| 75 | ;; that would turn on the toolbar in MS Windows where it is currently | ||
| 76 | ;; useless, and it would overwrite disabling the tool bar from X | ||
| 77 | ;; resources. If anyone want to implement this in a cleaner way, | ||
| 78 | ;; please do so. | ||
| 79 | ;; -- Per Abrahamsen <abraham@dina.kvl.dk> 2002-02-21. | ||
| 80 | (put 'tool-bar-mode 'standard-value '(t)) | ||
| 81 | |||
| 71 | (defvar tool-bar-map (make-sparse-keymap) | 82 | (defvar tool-bar-map (make-sparse-keymap) |
| 72 | "Keymap for the tool bar. | 83 | "Keymap for the tool bar. |
| 73 | Define this locally to override the global tool bar.") | 84 | Define this locally to override the global tool bar.") |