diff options
| author | Karl Heuer | 1997-10-15 23:57:19 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-10-15 23:57:19 +0000 |
| commit | d6bc306b43527d0a1b7060c9b8d3c2f85d0ba074 (patch) | |
| tree | 514e134107cff95e43ff3701a7baf24353f47de8 | |
| parent | 3671f444f162f3549581bc3b5b721c9aece0049a (diff) | |
| download | emacs-d6bc306b43527d0a1b7060c9b8d3c2f85d0ba074.tar.gz emacs-d6bc306b43527d0a1b7060c9b8d3c2f85d0ba074.zip | |
(widget-button-click): Move point to where clicked.
| -rw-r--r-- | lisp/wid-edit.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index 9052c77deae..a2e48496770 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el | |||
| @@ -922,8 +922,9 @@ Recommended as a parent keymap for modes using widgets.") | |||
| 922 | :group 'widget-faces) | 922 | :group 'widget-faces) |
| 923 | 923 | ||
| 924 | (defun widget-button-click (event) | 924 | (defun widget-button-click (event) |
| 925 | "Invoke button below mouse pointer." | 925 | "Invoke the button that the mouse is pointing at, and move there." |
| 926 | (interactive "@e") | 926 | (interactive "@e") |
| 927 | (mouse-set-point event) | ||
| 927 | (cond ((and (fboundp 'event-glyph) | 928 | (cond ((and (fboundp 'event-glyph) |
| 928 | (event-glyph event)) | 929 | (event-glyph event)) |
| 929 | (widget-glyph-click event)) | 930 | (widget-glyph-click event)) |