Merge from origin/emacs-29

c494a6e879 Improve documentation of 'emacs_function' in modules
a08e6423cc ; * doc/emacs/fixit.texi (Spelling): Fix last change.
418547162d Improve documentation of Ispell commands
c4b4948845 Don't recommend inverse-video for debugging
This commit is contained in:
Eli Zaretskii 2024-01-13 05:36:16 -05:00
commit 91b1765cd4
3 changed files with 33 additions and 9 deletions

View file

@ -274,6 +274,9 @@ you can control which one is used by customizing the variable
@item M-$
Check and correct spelling of the word at point (@code{ispell-word}).
If the region is active, do it for all words in the region instead.
@item C-u M-$
If a previous spelling operation was interrupted, continue that
operation (@code{ispell-continue}).
@item M-x ispell
Check and correct spelling of all words in the buffer. If the region
is active, do it for all words in the region instead.
@ -305,12 +308,16 @@ Enable Flyspell mode for comments and strings only.
@kindex M-$
@findex ispell-word
@findex ispell-continue
To check the spelling of the word around or before point, and
optionally correct it as well, type @kbd{M-$} (@code{ispell-word}).
If a region is active, @kbd{M-$} checks the spelling of all words
within the region. @xref{Mark}. (When Transient Mark mode is off,
@kbd{M-$} always acts on the word around or before point, ignoring the
region; @pxref{Disabled Transient Mark}.)
region; @pxref{Disabled Transient Mark}.) When invoked with a prefix
argument, @kbd{C-u M-$}, this calls @code{ispell-continue}, which
continues the spelling operation, if any, which was interrupted with
@kbd{X} or @kbd{C-g}.
@findex ispell
@findex ispell-buffer
@ -383,9 +390,9 @@ wildcard.
@item C-g
@itemx X
Quit interactive spell-checking, leaving point at the word that was
being checked. You can restart checking again afterward with @w{@kbd{C-u
M-$}}.
Interrupt the interactive spell-checking, leaving point at the word
that was being checked. You can restart checking again afterward with
@w{@kbd{C-u M-$}}.
@item x
Quit interactive spell-checking and move point back to where it was
@ -394,6 +401,19 @@ when you started spell-checking.
@item q
Quit interactive spell-checking and kill the spell-checker subprocess.
@item C-r
Enter recursive-edit (@pxref{Recursive Edit}). When you exit
recursive-edit with @kbd{C-M-c}, the interactive spell-checking will
resume. This allows you to consult the buffer text without
interrupting the spell-checking. Do @emph{not} modify the buffer in
the recursive editing, and especially don't modify the misspelled
word, as the edits will be undone when you exit recursive-edit. If
you need to edit the misspelled word, use @kbd{r} or @kbd{R} instead,
or use @kbd{X}, edit the buffer, then resume with @w{@kbd{C-u M-$}}.
@item C-z
Suspend Emacs or iconify the selected frame.
@item ?
Show the list of options.
@end table

View file

@ -1374,6 +1374,15 @@ objects between Emacs and the module (@pxref{Module Values}). The
provides facilities for conversion between basic C data types and the
corresponding @code{emacs_value} objects.
In the module function's body, do @emph{not} attempt to access
elements of the @var{args} array beyond the index
@code{@var{nargs}-1}: memory for the @var{args} array is allocated
exactly to accommodate @var{nargs} values, and accessing beyond that
will most probably crash your module. In particular, if the value of
@var{nargs} passed to the function at run time is zero, it must not
access @var{args} at all, as no memory will have been allocated for it
in that case.
A module function always returns a value. If the function returns
normally, the Lisp code which called it will see the Lisp object
corresponding to the @code{emacs_value} value the function returned.

View file

@ -864,11 +864,6 @@ in your ~/.emacs file. When the problem happens, exit the Emacs that
you were running, kill it, and rename the two files. Then you can start
another Emacs without clobbering those files, and use it to examine them.
An easy way to see if too much text is being redrawn on a terminal is to
evaluate '(setq inverse-video t)' before you try the operation you think
will cause too much redrawing. This doesn't refresh the screen, so only
newly drawn text is in inverse video.
** Debugging LessTif
If you encounter bugs whereby Emacs built with LessTif grabs all mouse