Variable: text-mode-ispell-word-completion
text-mode-ispell-word-completion is a customizable variable defined in
text-mode.el.gz.
Value
completion-at-point
Documentation
How Text mode provides Ispell word completion.
By default, this option is set to completion-at-point, which
means that Text mode adds an Ispell word completion function to
completion-at-point-functions. Any other non-nil value says to
bind M-TAB directly to ispell-complete-word instead. If this
is nil, Text mode neither binds M-TAB to ispell-complete-word
nor does it extend completion-at-point-functions.
This variable was added, or its default value changed, in Emacs 30.1.
Probably introduced at or before Emacs version 30.1.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/text-mode.el.gz
(defcustom text-mode-ispell-word-completion 'completion-at-point
"How Text mode provides Ispell word completion.
By default, this option is set to `completion-at-point', which
means that Text mode adds an Ispell word completion function to
`completion-at-point-functions'. Any other non-nil value says to
bind M-TAB directly to `ispell-complete-word' instead. If this
is nil, Text mode neither binds M-TAB to `ispell-complete-word'
nor does it extend `completion-at-point-functions'."
:group 'text
:type '(choice (const completion-at-point) boolean)
:version "30.1"
:set (lambda (sym val)
(if (and (set sym val)
(not (eq val 'completion-at-point)))
(keymap-set text-mode-map "C-M-i" #'ispell-complete-word)
(keymap-unset text-mode-map "C-M-i" t))))