Function: jinx-correct-all
jinx-correct-all is an interactive and natively compiled function
defined in jinx.el.
Signature
(jinx-correct-all &optional ONLY-CHECK)
Documentation
Correct all misspelled words in the buffer.
With prefix argument ONLY-CHECK, only check the buffer and highlight all misspelled words, but do not open the correction UI.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/b5jnxgwmlp7hh60wfrx7amhrmrpfcqqi-emacs-packages-deps/share/emacs/site-lisp/elpa/jinx-20260926.912/jinx.el
;;;###autoload
(defun jinx-correct-all (&optional only-check)
"Correct all misspelled words in the buffer.
With prefix argument ONLY-CHECK, only check the buffer and highlight all
misspelled words, but do not open the correction UI."
(interactive "*P")
(jinx--correct-guard
(let* ((overlays (jinx--force-overlays (or (use-region-beginning) (point-min))
(or (use-region-end) (point-max))))
(count (length overlays))
(idx 0))
(if only-check
(message "%d misspelled word%s in buffer `%s'"
count (if (= count 1) "" "s") (buffer-name))
(deactivate-mark)
(push-mark)
(while-let ((ov (nth idx overlays)))
(if-let* (((overlay-buffer ov))
(skip (jinx--correct-overlay ov :info (format " (%d of %d)" (1+ idx) count))))
(setq idx (mod (+ idx skip) count))
(incf idx)))))))