aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Djärv2010-11-21 19:29:08 +0100
committerJan Djärv2010-11-21 19:29:08 +0100
commit77af54d7c2d9e1ebcbbe1dffec4004b7079ce6bf (patch)
tree999dda997d7c8fa1d4372381c3380ff11701676b
parent4e2f7d2a68a1849a1b8ef5488afbd2c0dadd1e80 (diff)
downloademacs-77af54d7c2d9e1ebcbbe1dffec4004b7079ce6bf.tar.gz
emacs-77af54d7c2d9e1ebcbbe1dffec4004b7079ce6bf.zip
* tool-bar.el (tool-bar-setup): Remove save as, print and customize.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/tool-bar.el9
2 files changed, 4 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 39454198a64..8ac8e56f384 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12010-11-21 Jan Djärv <jan.h.d@swipnet.se>
2
3 * tool-bar.el (tool-bar-setup): Remove save as, print and customize.
4
12010-11-21 Deniz Dogan <deniz.a.m.dogan@gmail.com> 52010-11-21 Deniz Dogan <deniz.a.m.dogan@gmail.com>
2 6
3 * progmodes/python.el (python-font-lock-keywords): Highlight 7 * progmodes/python.el (python-font-lock-keywords): Highlight
diff --git a/lisp/tool-bar.el b/lisp/tool-bar.el
index 4b6fd970d8a..a3292c42046 100644
--- a/lisp/tool-bar.el
+++ b/lisp/tool-bar.el
@@ -271,11 +271,6 @@ holds a keymap."
271 (not (eq 'special 271 (not (eq 'special
272 (get major-mode 272 (get major-mode
273 'mode-class))))) 273 'mode-class)))))
274 (tool-bar-add-item-from-menu 'write-file "saveas" nil :vert-only t
275 :visible '(or buffer-file-name
276 (not (eq 'special
277 (get major-mode
278 'mode-class)))))
279 (tool-bar-add-item-from-menu 'undo "undo" nil :vert-only t 274 (tool-bar-add-item-from-menu 'undo "undo" nil :vert-only t
280 :visible '(not (eq 'special (get major-mode 275 :visible '(not (eq 'special (get major-mode
281 'mode-class)))) 276 'mode-class))))
@@ -297,16 +292,12 @@ holds a keymap."
297 ;; than a lambda for Read Mail. 292 ;; than a lambda for Read Mail.
298 ;;(tool-bar-add-item-from-menu 'compose-mail "mail/compose") 293 ;;(tool-bar-add-item-from-menu 'compose-mail "mail/compose")
299 294
300 (tool-bar-add-item-from-menu 'print-buffer "print" nil :label "Print")
301 295
302 ;; tool-bar-add-item-from-menu itself operates on 296 ;; tool-bar-add-item-from-menu itself operates on
303 ;; (default-value 'tool-bar-map), but when we don't use that function, 297 ;; (default-value 'tool-bar-map), but when we don't use that function,
304 ;; we must explicitly operate on the default value. 298 ;; we must explicitly operate on the default value.
305 299
306 (let ((tool-bar-map (default-value 'tool-bar-map))) 300 (let ((tool-bar-map (default-value 'tool-bar-map)))
307 (tool-bar-add-item "preferences" 'customize 'customize
308 :help "Edit preferences (customize)")
309
310 (tool-bar-add-item "help" (lambda () 301 (tool-bar-add-item "help" (lambda ()
311 (interactive) 302 (interactive)
312 (popup-menu menu-bar-help-menu)) 303 (popup-menu menu-bar-help-menu))