(unless ispell-process
(condition-case nil
(progn
- (ispell-set-spellchecker-params) ; Initialize variables and dicts alists
- (ispell-accept-buffer-local-defs) ; use the correct dictionary
+ (ispell-set-spellchecker-params) ; Initialize variables and dict alists.
+ (ispell-accept-buffer-local-defs) ; Use the correct dictionary.
;; This code copied in part from ispell.el Emacs 19.34
(dolist (w checkdoc-ispell-lisp-words)
(process-send-string ispell-process (concat "@" w "\n"))))
(defun ispell--run-on-word (word)
"Run ispell on WORD."
- (ispell-send-string "%\n") ; put in verbose mode
+ (ispell-send-string "%\n") ; Put the speller in verbose mode.
(ispell-send-string (concat "^" word "\n"))
;; wait until ispell has processed word
(while (progn
(or ispell-current-dictionary "default")))
(defun ispell-correct-p (&optional following)
- "Return t if the word at point is correct. Nil otherwise.
+ "Return t if the word at point is correct, nil otherwise.
If optional argument FOLLOWING is non-nil then the following
word (rather than preceding) is checked when the cursor is not
over a word."
(save-excursion
- ;; reset ispell-filter so it only contains the result of
+ ;; Reset ispell-filter so it only contains the result of
;; spell-checking the current-word:
(setq ispell-filter nil)
(let* ((word-and-boundaries (ispell-get-word following))