aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2020-09-26 16:36:31 +0200
committerLars Ingebrigtsen2020-09-26 16:36:31 +0200
commit18718fee7222dc32b30b7be2e443022db5d82f67 (patch)
treed47999dee72bb1418aebf3f8b321fb02a0e1e788
parent2de618ed5d3a160d54c7b5bb69f961e4ff6cc2f7 (diff)
downloademacs-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.el5
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