Function: jinx-correct-nearest
jinx-correct-nearest is an interactive and natively compiled function
defined in jinx.el.
Signature
(jinx-correct-nearest)
Documentation
Correct nearest misspelled word.
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-nearest ()
"Correct nearest misspelled word."
(interactive "*")
(save-excursion
(jinx--correct-guard
(let* ((overlays (jinx--force-overlays (window-start) (window-end) t))
(count (length overlays))
(idx 0))
;; Not using `while-let' is intentional here.
(while (when-let* ((ov (nth idx overlays)))
(if (overlay-buffer ov)
(when-let* ((skip (jinx--correct-overlay ov)))
(setq idx (mod (+ idx skip) count)))
(incf idx)))))))) ;; Skip deleted overlay