summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2024-05-28 15:39:13 +0300
committerEli Zaretskii <eliz@gnu.org>2024-05-28 15:39:13 +0300
commitbf50aa38f9d2a3a5af8d32ce139c7533c912c476 (patch)
treee9de6336137cf02bd04c918e77d147ffd70cbf9d
parent225b426f256ba00aff7669ad18a5c85f86e22f67 (diff)
downloademacs-bf50aa38f9d2a3a5af8d32ce139c7533c912c476.tar.gz
emacs-bf50aa38f9d2a3a5af8d32ce139c7533c912c476.tar.bz2
emacs-bf50aa38f9d2a3a5af8d32ce139c7533c912c476.zip
Improve documentation of case-conversion commands
* doc/emacs/text.texi (Case): Include the commands with negative arguments. (Bug#71220)
-rw-r--r--doc/emacs/text.texi16
1 files changed, 12 insertions, 4 deletions
diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi
index 2db31c66f3b..c99683f0516 100644
--- a/doc/emacs/text.texi
+++ b/doc/emacs/text.texi
@@ -839,10 +839,17 @@ range of text to upper case or to lower case.
@table @kbd
@item M-l
Convert following word to lower case (@code{downcase-word}).
+@item M-- M-l
+Convert previous/last word to lower case. Note: @kbd{Meta--} is
+Meta-minus.
@item M-u
Convert following word to upper case (@code{upcase-word}).
+@item M-- M-u
+Convert previous/last last word to all upper case.
@item M-c
Capitalize the following word (@code{capitalize-word}).
+@item M-- M-c
+Convert previous/last last word to lower case with capital initial.
@item C-x C-l
Convert region to lower case (@code{downcase-region}).
@item C-x C-u
@@ -869,10 +876,11 @@ from all upper case to mixed case, because you can move through the
text using @kbd{M-l}, @kbd{M-u} or @kbd{M-c} on each word as
appropriate, occasionally using @kbd{M-f} instead to skip a word.
- When given a negative argument, the word case conversion commands apply
-to the appropriate number of words before point, but do not move point.
-This is convenient when you have just typed a word in the wrong case: you
-can give the case conversion command and continue typing.
+ When given a negative argument, as in @w{@kbd{C-u - 5 M-c}}, the
+word case-conversion commands apply to the appropriate number of words
+before point, but do not move point. This is convenient when you have
+just typed a word in the wrong case: you can give the case conversion
+command, like @kbd{M-- M-u}, and continue typing.
If a word case conversion command is given in the middle of a word,
it applies only to the part of the word which follows point. (This is