Function: jinx--correct-replace

jinx--correct-replace is a natively compiled function defined in jinx.el.

Signature

(jinx--correct-replace OVERLAY WORD)

Documentation

Replace OVERLAY with WORD.

Source Code

;; Defined in /nix/store/b5jnxgwmlp7hh60wfrx7amhrmrpfcqqi-emacs-packages-deps/share/emacs/site-lisp/elpa/jinx-20260926.912/jinx.el
(defun jinx--correct-replace (overlay word)
  "Replace OVERLAY with WORD."
  (when-let* ((start (overlay-start overlay))
              (end (overlay-end overlay)))
    (undo-boundary)
    (delete-overlay overlay)
    (goto-char end)
    (insert-before-markers word)
    (delete-region start end)))