2

I would like to do a sort of flyspell-goto-next-error but without first having to run flyspell-buffer or flyspell-region.

How could this be accomplished?

In other words: keep "flyspell-buffering" until a spelling error is found and then invoke flyspell-word (M-$).

In my case, I cannot run ispell-buffer because I would like to use flyspell-babel.el, which uses Flyspell.

2

The non-flying ispell-buffer will search the buffer for errors and then prompt for a correction when it finds one.

  • In my case, I cannot run ispell-buffer because I would like to use flyspell-babel.el, which uses Flyspell. (Or perhaps there is something similar to flyspell-babel.el that uses ispell / aspell only?) – Geremia Aug 20 '16 at 20:05
  • Is there a way to run ispell-buffer from the current point? – Geremia Aug 23 '16 at 15:11
  • 1
    @Geremia Do you mean to spell check the word at the point? ispell-word (M-$) does that. – erikstokes Aug 24 '16 at 1:38
  • I suppose what I want to do is run ispell, pause it for editing, and then resume it from wherever I happen to have placed the point. – Geremia Aug 24 '16 at 15:49
1
(eval-after-load "flyspell"
  '(progn
     (defun flyspell-goto-next-and-popup ( )
       "Goto the next spelling error, popup menu, and stop when the end of buffer is reached."
       (interactive)
       (while (< (point) (point-max))
     (flyspell-goto-next-error)
     (redisplay)
     (flyspell-correct-word-before-point))
       (message "No more spelling errors in buffer.")
       ) 
     ))
(define-key flyspell-mode-map (kbd "C-;") 'flyspell-goto-next-and-popup)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.