Subject: Re: bug#50851: 28.0.50; flyspell-mode overrides context-menu-mode

From: Juri Linkov <[email-masked]>
Date: Sat, 04 Dec 2021 21:54:36 +0200

>> The problem is that requires moving two characters back.
>> It would be nicer if the flyspell context menu would be more smart,
>> and detected the misspelled word before point, ignoring whitespace.
>
> FWIW `ispell-word' does this currently.  It also ignores non-letters
> like ; and , and ".

`C-c $' (flyspell-correct-word-before-point) does the same and
ignores non-letters.  But `context-menu-function' is added
only on the overlay over the word - therefore the problem.