]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve documentation of case-conversion commands
authorEli Zaretskii <eliz@gnu.org>
Tue, 28 May 2024 12:39:13 +0000 (15:39 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 1 Jun 2024 17:04:56 +0000 (19:04 +0200)
* doc/emacs/text.texi (Case): Include the commands with negative
arguments.  (Bug#71220)

(cherry picked from commit bf50aa38f9d2a3a5af8d32ce139c7533c912c476)

doc/emacs/text.texi

index f5e31fd277f605d5df68095eaeb8c13238b63a35..1d1065c45c214fde8a75b86bb2b5aa31d7bdaca6 100644 (file)
@@ -843,10 +843,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
@@ -873,10 +880,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