(erase-buffer)
(princ symbol (current-buffer))
(goto-char (point-min))
- (when (and (eq (get symbol 'custom-type) 'boolean)
- (re-search-forward "-p\\'" nil t))
- (replace-match "" t t)
- (goto-char (point-min)))
+ ;; FIXME: Boolean variables are not predicates, so they shouldn't
+ ;; end with `-p'. -stef
+ ;; (when (and (eq (get symbol 'custom-type) 'boolean)
+ ;; (re-search-forward "-p\\'" nil t))
+ ;; (replace-match "" t t)
+ ;; (goto-char (point-min)))
(if custom-unlispify-remove-prefixes
(let ((prefixes custom-prefix-list)
prefix)
"Ignoring WIDGET, create a menu entry for customization group SYMBOL."
`( ,(custom-unlispify-menu-entry symbol t)
:filter (lambda (&rest junk)
- (cdr (custom-menu-create ',symbol)))))
+ (let ((menu (custom-menu-create ',symbol)))
+ (if (consp menu) (cdr menu) menu)))))
;;;###autoload
(defun custom-menu-create (symbol)
(setq name "Customize"))
`(,name
:filter (lambda (&rest junk)
- (custom-menu-create ',symbol))))
+ (let ((menu (custom-menu-create ',symbol)))
+ (if (consp menu) (cdr menu) menu)))))
;;; The Custom Mode.