]> git.eshelyaron.com Git - emacs.git/commitdiff
* cus-edit.el (Custom-move-and-invoke): Deleted.
authorChong Yidong <cyd@stupidchicken.com>
Tue, 18 Oct 2005 00:28:57 +0000 (00:28 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Tue, 18 Oct 2005 00:28:57 +0000 (00:28 +0000)
(custom-mode-map): Bind mouse-1 to widget-move-and-invoke.

* wid-edit.el (widget-move-and-invoke): New function, from
Custom-move-and-invoke.

lisp/ChangeLog
lisp/cus-edit.el
lisp/wid-edit.el

index ebc420983fbb84d1c20de3dcfcb3f4b9046621d3..3e83b17b8b67b4bd4523ff4e5575f226e8225820 100644 (file)
@@ -1,3 +1,11 @@
+2005-10-17  Chong Yidong  <cyd@stupidchicken.com>
+
+       * cus-edit.el (Custom-move-and-invoke): Deleted.
+       (custom-mode-map): Bind mouse-1 to widget-move-and-invoke.
+
+       * wid-edit.el (widget-move-and-invoke): New function, from
+       Custom-move-and-invoke.
+
 2005-10-17  Bill Wohler  <wohler@newt.com>
 
        Moved all remaining images from lisp/toolbar to etc/images, moved
index 8f88e4d049c6d766d68fe2e6ad3bddc12070775a..696fd66543a2e0aa3c132ccf3cb398ba0f4aac7d 100644 (file)
@@ -4245,20 +4245,10 @@ The format is suitable for use with `easy-menu-define'."
     (define-key map "u" 'Custom-goto-parent)
     (define-key map "n" 'widget-forward)
     (define-key map "p" 'widget-backward)
-    (define-key map [mouse-1] 'Custom-move-and-invoke)
+    (define-key map [mouse-1] 'widget-move-and-invoke)
     map)
   "Keymap for `custom-mode'.")
 
-(defun Custom-move-and-invoke (event)
-  "Move to where you click, and if it is an active field, invoke it."
-  (interactive "e")
-  (mouse-set-point event)
-  (if (widget-event-point event)
-      (let* ((pos (widget-event-point event))
-            (button (get-char-property pos 'button)))
-       (if button
-           (widget-button-click event)))))
-
 (easy-menu-define Custom-mode-menu
     custom-mode-map
   "Menu used in customization buffers."
index 8335a2021207c2fa0def5eb55896af3131db5d63..1d5cb3625f00a4edd121f662ea3e6aae81c41533 100644 (file)
@@ -660,6 +660,16 @@ button is pressed or inactive, respectively.  These are currently ignored."
                            tag 'mouse-face widget-button-pressed-face)))
     (insert tag)))
 
+(defun widget-move-and-invoke (event)
+  "Move to where you click, and if it is an active field, invoke it."
+  (interactive "e")
+  (mouse-set-point event)
+  (if (widget-event-point event)
+      (let* ((pos (widget-event-point event))
+            (button (get-char-property pos 'button)))
+       (if button
+           (widget-button-click event)))))
+
 ;;; Buttons.
 
 (defgroup widget-button nil