]> code.delx.au - gnu-emacs/commitdiff
* cus-edit.el (custom-no-edit): Revert 2006-07-27 change, so that
authorChong Yidong <cyd@stupidchicken.com>
Fri, 28 Jul 2006 18:08:11 +0000 (18:08 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Fri, 28 Jul 2006 18:08:11 +0000 (18:08 +0000)
self-insert-command keys don't activate buttons.
(custom-mode-map): Just don't bind "\C-m" to `custom-no-edit'.

lisp/ChangeLog
lisp/cus-edit.el

index a09227f413680b19059b666a8c279f5b46565d62..8fd1f8a42550ebc529aad58a734e9ff4136094dc 100644 (file)
@@ -1,3 +1,9 @@
+2006-07-28  Chong Yidong  <cyd@stupidchicken.com>
+
+       * cus-edit.el (custom-no-edit): Revert 2006-07-27 change, so that
+       self-insert-command keys don't activate buttons.
+       (custom-mode-map): Just don't bind "\C-m" to `custom-no-edit'.
+
 2006-07-29  Nick Roberts  <nickrob@snap.net.nz>
 
        * progmodes/gdb-ui.el (gdb-info-breakpoints-custom): Use different
index 15f43080aff4fe8cc6dde855fe3f30045318f7b7..0493dd0894c93a81f3fdd57ff91cd1b9bcd6c270 100644 (file)
@@ -4435,9 +4435,7 @@ The format is suitable for use with `easy-menu-define'."
   ;; Actually, this misfeature of dense keymaps was fixed on 2001-11-26.
   (let ((map (make-keymap)))
     (set-keymap-parent map widget-keymap)
-    (define-key map [remap self-insert-command]
-      'custom-no-edit)
-    (define-key map "\^m" 'custom-no-edit)
+    (define-key map [remap self-insert-command] 'custom-no-edit)
     (define-key map " " 'scroll-up)
     (define-key map "\177" 'scroll-down)
     (define-key map "\C-c\C-c" 'Custom-set)
@@ -4452,10 +4450,7 @@ The format is suitable for use with `easy-menu-define'."
 (defun custom-no-edit (pos &optional event)
   "Invoke button at POS, or refuse to allow editing of Custom buffer."
   (interactive "@d")
-  (let ((button (get-char-property pos 'button)))
-    (if button
-       (widget-apply-action button event)
-      (error "You can't edit this part of the Custom buffer"))))
+  (error "You can't edit this part of the Custom buffer"))
 
 (easy-menu-define Custom-mode-menu
     custom-mode-map