diff options
| author | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
| commit | 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch) | |
| tree | f1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/elisp/case-changes.html | |
new repository
Diffstat (limited to 'devdocs/elisp/case-changes.html')
| -rw-r--r-- | devdocs/elisp/case-changes.html | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/devdocs/elisp/case-changes.html b/devdocs/elisp/case-changes.html new file mode 100644 index 00000000..a2245cd4 --- /dev/null +++ b/devdocs/elisp/case-changes.html @@ -0,0 +1,41 @@ + <h3 class="section">Case Changes</h3> <p>The case change commands described here work on text in the current buffer. See <a href="case-conversion">Case Conversion</a>, for case conversion functions that work on strings and characters. See <a href="case-tables">Case Tables</a>, for how to customize which characters are upper or lower case and how to convert them. </p> <dl> <dt id="capitalize-region">Command: <strong>capitalize-region</strong> <em>start end</em> +</dt> <dd> +<p>This function capitalizes all words in the region defined by <var>start</var> and <var>end</var>. 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 <code>nil</code>. </p> <p>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. </p> <p>When <code>capitalize-region</code> is called interactively, <var>start</var> and <var>end</var> are point and the mark, with the smallest first. </p> <div class="example"> <pre class="example">---------- Buffer: foo ---------- +This is the contents of the 5th foo. +---------- Buffer: foo ---------- +</pre> + +<pre class="example">(capitalize-region 1 37) +⇒ nil + +---------- Buffer: foo ---------- +This Is The Contents Of The 5th Foo. +---------- Buffer: foo ---------- +</pre> +</div> </dd> +</dl> <dl> <dt id="downcase-region">Command: <strong>downcase-region</strong> <em>start end</em> +</dt> <dd> +<p>This function converts all of the letters in the region defined by <var>start</var> and <var>end</var> to lower case. The function returns <code>nil</code>. </p> <p>When <code>downcase-region</code> is called interactively, <var>start</var> and <var>end</var> are point and the mark, with the smallest first. </p> +</dd> +</dl> <dl> <dt id="upcase-region">Command: <strong>upcase-region</strong> <em>start end</em> +</dt> <dd> +<p>This function converts all of the letters in the region defined by <var>start</var> and <var>end</var> to upper case. The function returns <code>nil</code>. </p> <p>When <code>upcase-region</code> is called interactively, <var>start</var> and <var>end</var> are point and the mark, with the smallest first. </p> +</dd> +</dl> <dl> <dt id="capitalize-word">Command: <strong>capitalize-word</strong> <em>count</em> +</dt> <dd> +<p>This function capitalizes <var>count</var> 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 <var>count</var> is negative, the function capitalizes the -<var>count</var> previous words but does not move point. The value is <code>nil</code>. </p> <p>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. </p> <p>When <code>capitalize-word</code> is called interactively, <var>count</var> is set to the numeric prefix argument. </p> +</dd> +</dl> <dl> <dt id="downcase-word">Command: <strong>downcase-word</strong> <em>count</em> +</dt> <dd> +<p>This function converts the <var>count</var> words after point to all lower case, moving point over as it does. If <var>count</var> is negative, it converts the -<var>count</var> previous words but does not move point. The value is <code>nil</code>. </p> <p>When <code>downcase-word</code> is called interactively, <var>count</var> is set to the numeric prefix argument. </p> +</dd> +</dl> <dl> <dt id="upcase-word">Command: <strong>upcase-word</strong> <em>count</em> +</dt> <dd> +<p>This function converts the <var>count</var> words after point to all upper case, moving point over as it does. If <var>count</var> is negative, it converts the -<var>count</var> previous words but does not move point. The value is <code>nil</code>. </p> <p>When <code>upcase-word</code> is called interactively, <var>count</var> is set to the numeric prefix argument. </p> +</dd> +</dl><div class="_attribution"> + <p class="_attribution-p"> + Copyright © 1990-1996, 1998-2022 Free Software Foundation, Inc. <br>Licensed under the GNU GPL license.<br> + <a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Case-Changes.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Case-Changes.html</a> + </p> +</div> |
