aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2000-07-13 17:06:15 +0000
committerDave Love2000-07-13 17:06:15 +0000
commitd04a3972bf11e44110b07b6fe5cb5bc7006e3345 (patch)
treeb4acb9eb6594f87c88640eb31b99d2f4670fff39
parent0f1a9b2356e3eb8ddfea1f26f3d8812e568f7d03 (diff)
downloademacs-d04a3972bf11e44110b07b6fe5cb5bc7006e3345.tar.gz
emacs-d04a3972bf11e44110b07b6fe5cb5bc7006e3345.zip
(custom-group-menu-create, customize-menu-create): Use :filter, per old
XEmacs code.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/cus-edit.el30
2 files changed, 13 insertions, 22 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 247bf61e162..b4a951adedf 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12000-07-13 Dave Love <fx@gnu.org>
2
3 * cus-edit.el (custom-group-menu-create, customize-menu-create):
4 Use :filter, per old XEmacs code.
5
12000-07-12 Gerd Moellmann <gerd@gnu.org> 62000-07-12 Gerd Moellmann <gerd@gnu.org>
2 7
3 * term.el (term-send-raw-meta): Strip modifiers from the keyboard 8 * term.el (term-send-raw-meta): Strip modifiers from the keyboard
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 8c2a801ba77..c05c0d05666 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -3636,20 +3636,11 @@ or (if there were none) at the end of the buffer."
3636 ':style 'toggle 3636 ':style 'toggle
3637 ':selected symbol))) 3637 ':selected symbol)))
3638 3638
3639;; Fixme: sort out use of :filter in Emacs 21. 3639(defun custom-group-menu-create (widget symbol)
3640(if nil ; (string-match "XEmacs" emacs-version) 3640 "Ignoring WIDGET, create a menu entry for customization group SYMBOL."
3641 ;; XEmacs can create menus dynamically. 3641 `( ,(custom-unlispify-menu-entry symbol t)
3642 (defun custom-group-menu-create (widget symbol) 3642 :filter (lambda (&rest junk)
3643 "Ignoring WIDGET, create a menu entry for customization group SYMBOL." 3643 (cdr (custom-menu-create ',symbol)))))
3644 `( ,(custom-unlispify-menu-entry symbol t)
3645 :filter (lambda (&rest junk)
3646 (cdr (custom-menu-create ',symbol)))))
3647 ;; But emacs can't.
3648 (defun custom-group-menu-create (widget symbol)
3649 "Ignoring WIDGET, create a menu entry for customization group SYMBOL."
3650 ;; Limit the nesting.
3651 (let ((custom-menu-nesting (1- custom-menu-nesting)))
3652 (custom-menu-create symbol))))
3653 3644
3654;;;###autoload 3645;;;###autoload
3655(defun custom-menu-create (symbol) 3646(defun custom-menu-create (symbol)
@@ -3686,14 +3677,9 @@ Otherwise the menu will be named `Customize'.
3686The format is suitable for use with `easy-menu-define'." 3677The format is suitable for use with `easy-menu-define'."
3687 (unless name 3678 (unless name
3688 (setq name "Customize")) 3679 (setq name "Customize"))
3689 ;; Fixme: sort out use of :filter in Emacs 21. 3680 `(,name
3690 (if nil ;(string-match "XEmacs" emacs-version) 3681 :filter (lambda (&rest junk)
3691 ;; We can delay it under XEmacs. 3682 (cdr (custom-menu-create ',symbol)))))
3692 `(,name
3693 :filter (lambda (&rest junk)
3694 (cdr (custom-menu-create ',symbol))))
3695 ;; But we must create it now under Emacs.
3696 (cons name (cdr (custom-menu-create symbol)))))
3697 3683
3698;;; The Custom Mode. 3684;;; The Custom Mode.
3699 3685