]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix mouse highlighting in Customize buffers
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 26 Sep 2020 14:36:31 +0000 (16:36 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 26 Sep 2020 14:36:31 +0000 (16:36 +0200)
* 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.

lisp/wid-edit.el

index 8ad99f49aa17d436273bc66e70da90b74be33aa5..8e2055f9185079a686d072c71792e755ffda739a 100644 (file)
@@ -1057,9 +1057,8 @@ If nothing was called, return non-nil."
                      pos 'button (and (windowp (posn-window start))
                                       (window-buffer (posn-window start))))))
 
-       (when (and (widget-get button :button-overlay)
-                   (or (null button)
-                       (widget-button--check-and-call-button event button)))
+       (when (or (null button)
+                  (widget-button--check-and-call-button event button))
          (let ((up t)
                 command)
            ;; Mouse click not on a widget button.  Find the global