1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-21 12:03:55 -08:00

; Improve docs for last change.

This commit is contained in:
Sean Whitton 2026-01-14 18:48:36 +00:00
parent ea5d079e26
commit 02966c8db5
2 changed files with 17 additions and 16 deletions

View file

@ -343,19 +343,6 @@ numbered @dfn{near-misses}---words that are close to the incorrect word.
Then you must type a single-character response. Here are the valid
responses:
@vindex ispell-save-corrections-as-abbrevs
You can have Ispell remember your spelling corrections so that they
are applied automatically when Abbrev mode is enabled (@pxref{Abbrevs}).
The user option @code{ispell-save-corrections-as-abbrevs} determines
whether Ispell does so by default. With that option enabled, each time
you correct a misspelled word, Emacs saves the correction as a global
abbrev expansion. Then, whenever you type the misspelling and then a
word-separator (@key{SPC}, comma, etc.) in a buffer with Abbrev mode
enabled, Emacs will expand the misspelling to its correction.
Regardless of this option's value, you can toggle abbrev saving for a
single correction by typing @kbd{C-u} immediately before selecting a
replacement in the command loop.
@table @kbd
@item @var{digit}
Replace the word, just this time, with one of the displayed
@ -431,6 +418,20 @@ Suspend Emacs or iconify the selected frame.
Show the list of options.
@end table
@vindex ispell-save-corrections-as-abbrevs
You can have Ispell remember your spelling corrections so that they
are applied automatically when Abbrev mode is enabled (@pxref{Abbrevs}).
If you customize @code{ispell-save-corrections-as-abbrevs} to a non-nil
value, then each time you correct a misspelled word, Emacs saves the
correction as a global abbrev. Then, whenever you type the misspelling
and then a word-separator (@key{SPC}, comma, etc.) in a buffer with
Abbrev mode enabled, Emacs expands the misspelling to its correction.
You can override this and disable saving a particular correction by
supplying a @kbd{C-u} prefix argument when selecting a replacement. If
@code{ispell-save-corrections-as-abbrevs} has its default value of nil,
the meaning of a prefix argument is inverted, in that typing @kbd{C-u}
before selecting a replacement @emph{does} save a global abbrev.
Use the command @kbd{M-@key{TAB}} (@code{completion-at-point}) to
complete the word at point. Insert the beginning of a word, and then
type @kbd{M-@key{TAB}} to select from a list of completions. (If your

View file

@ -1842,7 +1842,7 @@ functions like `ispell-complete-word'.")
"Non-nil means save the current correction as an abbrev.
Dynamically bound to the value of `ispell-save-corrections-as-abbrevs'
around calls to `ispell-command-loop'. The command loop can toggle
this, via `C-u', to control abbrev saving for the immediately following
this, via `C-u', to control abbrev saving for an immediately subsequent
replacement command (a selection from the suggestion list, or
\\`r'/\\`R').")
@ -2527,7 +2527,7 @@ Selections are:
\\`m' Place typed-in value in personal dictionary, then recheck current word.
\\`C-l' Redraw screen.
\\`C-r' Recursive edit.
\\`C-u' Toggle abbrev saving for the immediately following replacement command.
\\`C-u' Toggle abbrev saving for an immediately subsequent replacement command.
\\`C-z' Suspend Emacs or iconify frame."
(if (equal ispell-help-in-bufferp 'electric)
@ -2562,7 +2562,7 @@ Selections are:
\\`m' Place typed-in value in personal dictionary, then recheck current word.
\\`C-l' Redraw screen.
\\`C-r' Recursive edit.
\\`C-u' Toggle abbrev saving for the immediately following replacement command.
\\`C-u' Toggle abbrev saving for an immediately subsequent replacement command.
\\`C-z' Suspend Emacs or iconify frame."))
nil)))