and save-buffer if buffer-file-name non-nil. From rms.
+2001-03-10 Dave Love <fx@gnu.org>
+
+ * toolbar/tool-bar.el (tool-bar-setup): Don't suppress write-file
+ and save-buffer if buffer-file-name non-nil. From rms.
+
2001-03-10 Andre Spiegel <spiegel@gnu.org>
* vc.el (vc-do-command): If the destination buffer is already
(tool-bar-add-item-from-menu 'dired "open")
(tool-bar-add-item-from-menu 'kill-this-buffer "close")
(tool-bar-add-item-from-menu 'save-buffer "save" nil
- :visible '(not (eq 'special (get major-mode
- 'mode-class))))
+ :visible '(or buffer-file-name
+ (not (eq 'special
+ (get major-mode
+ 'mode-class)))))
(tool-bar-add-item-from-menu 'write-file "saveas" nil
- :visible '(not (eq 'special (get major-mode
- 'mode-class))))
+ :visible '(or buffer-file-name
+ (not (eq 'special
+ (get major-mode
+ 'mode-class)))))
(tool-bar-add-item-from-menu 'undo "undo" nil
:visible '(not (eq 'special (get major-mode
'mode-class))))