helm-flyspell icon indicating copy to clipboard operation
helm-flyspell copied to clipboard

Don't move the point after correcting spelling

Open naclander opened this issue 8 years ago • 4 comments

Added save-excursion to helm-flyspell-correct so that the point does not jump after a word is spellchecked.

naclander avatar May 21 '17 18:05 naclander

Note, that this diff looks big but I really just added save-excursion and re-indented everything.

naclander avatar May 21 '17 18:05 naclander

Can you say a bit more in which specific situation does the cursor jump? Do you mean when the word is misspelled or correct?

pronobis avatar May 22 '17 19:05 pronobis

@pronobis both. The cursor jumps to the end of the word. At least with my current emacs configuration. Is this intended?

I don't think helm-flyspell should change the position of the cursor. Or at the very least, this should be user configurable.

naclander avatar May 23 '17 03:05 naclander

So looking further at the code, you might have done this intentionally as a response to #3.

However, in my opinion, the cursor should be put back where it originally was, not necessarily at the end of the word that was just corrected. Do you disagree with this behavior? Would it be better if this behavior was customizable?

naclander avatar May 24 '17 05:05 naclander