Download GNU Emacs Manual

Transcript
Chapter 22: Text
488
capitalize-region start end
[Command]
This function capitalizes all words in the region defined by start and end. To capitalize
means to convert each word’s first character to upper case and convert the rest of
each word to lower case. The function returns nil.
If one end of the region is in the middle of a word, the part of the word within the
region is treated as an entire word.
When capitalize-region is called interactively, start and end are point and the
mark, with the smallest first.
---------- Buffer: foo ---------This is the contents of the 5th foo.
---------- Buffer: foo ---------(capitalize-region 1 44)
⇒ nil
---------- Buffer: foo ---------This Is The Contents Of The 5th Foo.
---------- Buffer: foo ----------
downcase-region start end
[Command]
This function converts all of the letters in the region defined by start and end to lower
case. The function returns nil.
When downcase-region is called interactively, start and end are point and the mark,
with the smallest first.
upcase-region start end
[Command]
This function converts all of the letters in the region defined by start and end to
upper case. The function returns nil.
When upcase-region is called interactively, start and end are point and the mark,
with the smallest first.
capitalize-word count
[Command]
This function capitalizes count words after point, moving point over as it does. To
capitalize means to convert each word’s first character to upper case and convert the
rest of each word to lower case. If count is negative, the function capitalizes the
−count previous words but does not move point. The value is nil.
If point is in the middle of a word, the part of the word before point is ignored when
moving forward. The rest is treated as an entire word.
When capitalize-word is called interactively, count is set to the numeric prefix
argument.
downcase-word count
[Command]
This function converts the count words after point to all lower case, moving point
over as it does. If count is negative, it converts the −count previous words but does
not move point. The value is nil.
When downcase-word is called interactively, count is set to the numeric prefix argument.