Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word

From: Eli Zaretskii <[email-masked]>
Date: Thu, 15 Feb 2018 14:00:59 +0200

On February 15, 2018 8:24:25 AM GMT+02:00, "積丹尼 Dan Jacobson" <[email-masked]> wrote:
>     C-M-i (translated from <escape> <tab>) runs the command
>   flyspell-auto-correct-word (found in flyspell-mode-map), which is an
>     interactive compiled Lisp function in ‘flyspell.el’.
> 
>     It is bound to C-., C-M-i.
> 
>     (flyspell-auto-correct-word)
> 
>     Correct the current word.
> This command proposes various successive corrections for the current
> word.
> 
> Well it turns out if the current word is already correct, then it
> searches backward up to several sentences looking for another word
> that
> it can correct.
> 
> Which can have disastrous consequences when the boss reads the final
> draft of what you sent him.
> 
> Therefore it would be best if this command would limit its helpfulness
> to what it says in the docstring: the current word.
> 
> Which to me means not some word 30 words back.

This happens only if you invoke the command more than once on the same
location.  So, while I agree that the doc string should be fixed, the problem
you describe can happen only by user request.