Function: flyspell-region
flyspell-region is an autoloaded, interactive and byte-compiled
function defined in flyspell.el.gz.
Signature
(flyspell-region BEG END)
Documentation
Flyspell text between BEG and END.
Make sure flyspell-mode(var)/flyspell-mode(fun) is turned on if you want the highlight
of a misspelled word removed when you've corrected it.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/flyspell.el.gz
;;*---------------------------------------------------------------------*/
;;* flyspell-region ... */
;;* ------------------------------------------------------------- */
;;* Because `ispell -a' is too slow, it is not possible to use */
;;* it on large region. Then, when ispell is invoked on a large */
;;* text region, a new `ispell -l' process is spawned. The */
;;* pointed out words are then searched in the region a checked with */
;;* regular flyspell means. */
;;*---------------------------------------------------------------------*/
;;;###autoload
(defun flyspell-region (beg end)
"Flyspell text between BEG and END.
Make sure `flyspell-mode' is turned on if you want the highlight
of a misspelled word removed when you've corrected it."
(interactive "r")
(ispell-set-spellchecker-params) ; Initialize variables and dicts alists
(if (= beg end)
()
(save-excursion
(if (> beg end)
(let ((old beg))
(setq beg end)
(setq end old)))
(if (and flyspell-large-region (> (- end beg) flyspell-large-region))
(flyspell-large-region beg end)
(flyspell-small-region beg end)))))