diff options
| author | Lars Ingebrigtsen | 2020-09-26 16:36:31 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2020-09-26 16:36:31 +0200 |
| commit | 18718fee7222dc32b30b7be2e443022db5d82f67 (patch) | |
| tree | d47999dee72bb1418aebf3f8b321fb02a0e1e788 | |
| parent | 2de618ed5d3a160d54c7b5bb69f961e4ff6cc2f7 (diff) | |
| download | emacs-18718fee7222dc32b30b7be2e443022db5d82f67.tar.gz emacs-18718fee7222dc32b30b7be2e443022db5d82f67.zip | |
Fix mouse highlighting in Customize buffers
* lisp/wid-edit.el (widget-button-click): Remove a
newly-introduced check that made mouse highlights no longer work
(bug#43612). It's unclear what the check was trying to fix.
| -rw-r--r-- | lisp/wid-edit.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index 8ad99f49aa1..8e2055f9185 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el | |||
| @@ -1057,9 +1057,8 @@ If nothing was called, return non-nil." | |||
| 1057 | pos 'button (and (windowp (posn-window start)) | 1057 | pos 'button (and (windowp (posn-window start)) |
| 1058 | (window-buffer (posn-window start)))))) | 1058 | (window-buffer (posn-window start)))))) |
| 1059 | 1059 | ||
| 1060 | (when (and (widget-get button :button-overlay) | 1060 | (when (or (null button) |
| 1061 | (or (null button) | 1061 | (widget-button--check-and-call-button event button)) |
| 1062 | (widget-button--check-and-call-button event button))) | ||
| 1063 | (let ((up t) | 1062 | (let ((up t) |
| 1064 | command) | 1063 | command) |
| 1065 | ;; Mouse click not on a widget button. Find the global | 1064 | ;; Mouse click not on a widget button. Find the global |