diff options
| author | Gerd Moellmann | 2001-02-19 17:53:37 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-02-19 17:53:37 +0000 |
| commit | 136b27c5716996032afb11b47b3489e1dbc2ab75 (patch) | |
| tree | 6b0c5b01a6c18c89d0a985653cf0b930d6b1af59 | |
| parent | c8bc6f6559904edd17dc1069d0418e5804cd4d15 (diff) | |
| download | emacs-136b27c5716996032afb11b47b3489e1dbc2ab75.tar.gz emacs-136b27c5716996032afb11b47b3489e1dbc2ab75.zip | |
(widget-button-click): Save the selected window
around the code handling clicks on buttons.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/wid-edit.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9cdabc0f00a..1a537825820 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2001-02-19 Gerd Moellmann <gerd@gnu.org> | ||
| 2 | |||
| 3 | * wid-edit.el (widget-button-click): Save the selected window | ||
| 4 | around the code handling clicks on buttons. | ||
| 5 | |||
| 1 | 2001-02-18 Dave Love <fx@gnu.org> | 6 | 2001-02-18 Dave Love <fx@gnu.org> |
| 2 | 7 | ||
| 3 | * imenu.el (imenu--generic-function): Use mapc to iterate over | 8 | * imenu.el (imenu--generic-function): Use mapc to iterate over |
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index e28114eeadd..dc7e28b4ed1 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el | |||
| @@ -861,7 +861,7 @@ Recommended as a parent keymap for modes using widgets.") | |||
| 861 | ;; Mouse click on a widget button. Do the following | 861 | ;; Mouse click on a widget button. Do the following |
| 862 | ;; in a save-excursion so that the click on the button | 862 | ;; in a save-excursion so that the click on the button |
| 863 | ;; doesn't change point. | 863 | ;; doesn't change point. |
| 864 | (progn | 864 | (save-selected-window |
| 865 | (save-excursion | 865 | (save-excursion |
| 866 | (mouse-set-point event) | 866 | (mouse-set-point event) |
| 867 | (let* ((overlay (widget-get button :button-overlay)) | 867 | (let* ((overlay (widget-get button :button-overlay)) |