summaryrefslogtreecommitdiff
path: root/lisp/cus-edit.el
diff options
context:
space:
mode:
authorMartin Rudalics <rudalics@gmx.at>2007-11-19 07:52:07 +0000
committerMartin Rudalics <rudalics@gmx.at>2007-11-19 07:52:07 +0000
commit34cf517c8d71e723df9d6d43b9ff8fc733bd1485 (patch)
tree70d2e62395c4857042b2575af46ce321ed36ab48 /lisp/cus-edit.el
parentc328399020e81d7b69c57d1df3363acbc4cf3f1b (diff)
downloademacs-34cf517c8d71e723df9d6d43b9ff8fc733bd1485.tar.gz
(custom-field-keymap): Move to other Custom mode
keymaps such that it's before the definition of Custom-mode-menu. (Custom-mode-menu): Show it for custom-field-keymap too.
Diffstat (limited to 'lisp/cus-edit.el')
-rw-r--r--lisp/cus-edit.el19
1 files changed, 9 insertions, 10 deletions
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index b90892fdd29..cdb39c1fe5e 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -491,6 +491,14 @@
map)
"Local keymap for links in `custom-mode'.")
+(defvar custom-field-keymap
+ (let ((map (copy-keymap widget-field-keymap)))
+ (define-key map "\C-c\C-c" 'Custom-set)
+ (define-key map "\C-x\C-s" 'Custom-save)
+ map)
+ "Keymap used inside editable fields in customization buffers.")
+
+(widget-put (get 'editable-field 'widget-type) :keymap custom-field-keymap)
;;; Utilities.
@@ -4438,7 +4446,7 @@ The format is suitable for use with `easy-menu-define'."
;;; Toolbar and menubar support
(easy-menu-define
- Custom-mode-menu custom-mode-map
+ Custom-mode-menu (list custom-mode-map custom-field-keymap)
"Menu used in customization buffers."
(nconc (list "Custom"
(customize-menu-create 'customize))
@@ -4476,15 +4484,6 @@ The format is suitable for use with `easy-menu-define'."
(widget-apply-action button event)
(error "You can't edit this part of the Custom buffer"))))
-(defvar custom-field-keymap
- (let ((map (copy-keymap widget-field-keymap)))
- (define-key map "\C-c\C-c" 'Custom-set)
- (define-key map "\C-x\C-s" 'Custom-save)
- map)
- "Keymap used inside editable fields in customization buffers.")
-
-(widget-put (get 'editable-field 'widget-type) :keymap custom-field-keymap)
-
(defun Custom-goto-parent ()
"Go to the parent group listed at the top of this buffer.
If several parents are listed, go to the first of them."