Function: ispell--maybe-save-correction-abbrev

ispell--maybe-save-correction-abbrev is a byte-compiled function defined in ispell.el.gz.

Signature

(ispell--maybe-save-correction-abbrev MISSPELLED REPLACEMENT)

Documentation

Save MISSPELLED -> REPLACEMENT as an abbrev, if enabled.

This is controlled by the variable ispell--save-correction-as-abbrev.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/ispell.el.gz
(defun ispell--maybe-save-correction-abbrev (misspelled replacement)
  "Save MISSPELLED -> REPLACEMENT as an abbrev, if enabled.
This is controlled by the variable `ispell--save-correction-as-abbrev'."
  (require 'abbrev)
  (when ispell--save-correction-as-abbrev
    (define-abbrev global-abbrev-table misspelled replacement)
    (message "\"%s\" now expands to \"%s\" globally" misspelled replacement)))