aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2007-11-19 07:52:07 +0000
committerMartin Rudalics2007-11-19 07:52:07 +0000
commit34cf517c8d71e723df9d6d43b9ff8fc733bd1485 (patch)
tree70d2e62395c4857042b2575af46ce321ed36ab48
parentc328399020e81d7b69c57d1df3363acbc4cf3f1b (diff)
downloademacs-34cf517c8d71e723df9d6d43b9ff8fc733bd1485.tar.gz
emacs-34cf517c8d71e723df9d6d43b9ff8fc733bd1485.zip
(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.
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/cus-edit.el19
2 files changed, 18 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8dc16834d0e..6ad287a3345 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,12 @@
12007-11-19 Martin Rudalics <rudalics@gmx.at>
2
3 * menu-bar.el (top-level): Deactivate clipboard-kill-region and
4 clipboard-yank when the buffer is read-only.
5
6 * cus-edit.el (custom-field-keymap): Move to other Custom mode
7 keymaps such that it's before the definition of Custom-mode-menu.
8 (Custom-mode-menu): Show it for custom-field-keymap too.
9
12007-11-19 Nick Roberts <nickrob@snap.net.nz> 102007-11-19 Nick Roberts <nickrob@snap.net.nz>
2 11
3 * progmodes/gdb-ui.el: Update commentary. 12 * progmodes/gdb-ui.el: Update commentary.
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 @@
491 map) 491 map)
492 "Local keymap for links in `custom-mode'.") 492 "Local keymap for links in `custom-mode'.")
493 493
494(defvar custom-field-keymap
495 (let ((map (copy-keymap widget-field-keymap)))
496 (define-key map "\C-c\C-c" 'Custom-set)
497 (define-key map "\C-x\C-s" 'Custom-save)
498 map)
499 "Keymap used inside editable fields in customization buffers.")
500
501(widget-put (get 'editable-field 'widget-type) :keymap custom-field-keymap)
494 502
495;;; Utilities. 503;;; Utilities.
496 504
@@ -4438,7 +4446,7 @@ The format is suitable for use with `easy-menu-define'."
4438;;; Toolbar and menubar support 4446;;; Toolbar and menubar support
4439 4447
4440(easy-menu-define 4448(easy-menu-define
4441 Custom-mode-menu custom-mode-map 4449 Custom-mode-menu (list custom-mode-map custom-field-keymap)
4442 "Menu used in customization buffers." 4450 "Menu used in customization buffers."
4443 (nconc (list "Custom" 4451 (nconc (list "Custom"
4444 (customize-menu-create 'customize)) 4452 (customize-menu-create 'customize))
@@ -4476,15 +4484,6 @@ The format is suitable for use with `easy-menu-define'."
4476 (widget-apply-action button event) 4484 (widget-apply-action button event)
4477 (error "You can't edit this part of the Custom buffer")))) 4485 (error "You can't edit this part of the Custom buffer"))))
4478 4486
4479(defvar custom-field-keymap
4480 (let ((map (copy-keymap widget-field-keymap)))
4481 (define-key map "\C-c\C-c" 'Custom-set)
4482 (define-key map "\C-x\C-s" 'Custom-save)
4483 map)
4484 "Keymap used inside editable fields in customization buffers.")
4485
4486(widget-put (get 'editable-field 'widget-type) :keymap custom-field-keymap)
4487
4488(defun Custom-goto-parent () 4487(defun Custom-goto-parent ()
4489 "Go to the parent group listed at the top of this buffer. 4488 "Go to the parent group listed at the top of this buffer.
4490If several parents are listed, go to the first of them." 4489If several parents are listed, go to the first of them."