Filter obtrusive events in help-read-key-sequence.
commite9dd580cc8b3134eb82d758efb070a3ab8dd3e9a
authorAlan Mackenzie <acm@muc.de>
Sat, 18 Nov 2017 14:52:39 +0000 (18 14:52 +0000)
committerAlan Mackenzie <acm@muc.de>
Sat, 18 Nov 2017 14:52:39 +0000 (18 14:52 +0000)
treecb626131eee284316025393543072a69557681e4
parent90075e8e1e6d6d7b6b49cb20ecdbb5d3de53d48b
Filter obtrusive events in help-read-key-sequence.

This fixes most of bug #29272.

* lisp/help.el (help-read-key-sequence): After a mouse event, pause for 0.01s,
discarding any events (such as <help-echo>) received in this time, before
polling for the double-click (etc.) events which may follow.  This fixes the
infinite loop which occurred whwn <help-echo> events triggered a sit-for
whilst handling menu events.
lisp/help.el