From a6948991c9068096ff455ae77f8f74cbffd2d6a4 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 28 May 2024 15:39:13 +0300 Subject: [PATCH] Improve documentation of case-conversion commands * doc/emacs/text.texi (Case): Include the commands with negative arguments. (Bug#71220) (cherry picked from commit bf50aa38f9d2a3a5af8d32ce139c7533c912c476) --- doc/emacs/text.texi | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi index f5e31fd277f..1d1065c45c2 100644 --- a/doc/emacs/text.texi +++ b/doc/emacs/text.texi @@ -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 -- 2.39.2