]> git.eshelyaron.com Git - emacs.git/commit
Fix flyspell-correct-word selected from context menu opened with the keyboard
authorJuri Linkov <juri@linkov.net>
Thu, 18 Nov 2021 18:23:58 +0000 (20:23 +0200)
committerJuri Linkov <juri@linkov.net>
Thu, 18 Nov 2021 18:23:58 +0000 (20:23 +0200)
commit14271d050a30b8121358361ba671ba29493e03dd
tree45515dcfbf0266e688902bea9f1cbfffb6cad975
parentbf824843f40a8235e2cdfc6d84d67ea2e2e96acb
Fix flyspell-correct-word selected from context menu opened with the keyboard

* lisp/mouse.el (context-menu-open): Call interactively a command
returned by `context-menu-map' such as `flyspell-correct-word' (bug#50067).

* lisp/textmodes/flyspell.el (flyspell-correct-word): Handle the
case when it's called by a key bound to `context-menu-open'.
Then it should work the same way as `C-c $' typed on misspelled word
where the arg `event' of `flyspell-correct-word-before-point' is nil.
lisp/mouse.el
lisp/textmodes/flyspell.el