+2006-04-19 Bill Wohler <wohler@newt.com>
+
+ * mh-tool-bar.el (mh-tool-bar-define): Fix enable-expr so that one
+ can permenently disable a button (such as a separator) with nil.
+
2006-04-18 Bill Wohler <wohler@newt.com>
* mh-e.el (defcustom-mh, defface-mh, defgroup-mh, mh-face-data)
(doc (if (string-match "\\(.*\\)\n" full-doc)
(match-string 1 full-doc)
full-doc))
- (enable-expr (or (nth 4 button) t))
+ (enable-expr (if (eql (length button) 4) t (nth 4 button)))
(modes (nth 1 button))
functions show-sym)
(when (memq 'letter modes) (setq functions `(:letter ,name)))
'mh-tool-bar-folder-buttons
'(list ,@(mapcar (lambda (x) `(quote ,x)) folder-defaults))
"List of buttons to include in MH-Folder tool bar."
- :group 'mh-tool-bar :set 'mh-tool-bar-folder-buttons-set
+ :group 'mh-tool-bar
+ :set 'mh-tool-bar-folder-buttons-set
:type '(set ,@(loop for x in folder-buttons
for y in folder-docs
collect `(const :tag ,y ,x)))
'mh-tool-bar-letter-buttons
'(list ,@(mapcar (lambda (x) `(quote ,x)) letter-defaults))
"List of buttons to include in MH-Letter tool bar."
- :group 'mh-tool-bar :set 'mh-tool-bar-letter-buttons-set
+ :group 'mh-tool-bar
+ :set 'mh-tool-bar-letter-buttons-set
:type '(set ,@(loop for x in letter-buttons
for y in letter-docs
collect `(const :tag ,y ,x)))