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/scanning-charsets.html | |
new repository
Diffstat (limited to 'devdocs/elisp/scanning-charsets.html')
| -rw-r--r-- | devdocs/elisp/scanning-charsets.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/devdocs/elisp/scanning-charsets.html b/devdocs/elisp/scanning-charsets.html new file mode 100644 index 00000000..ae68e483 --- /dev/null +++ b/devdocs/elisp/scanning-charsets.html @@ -0,0 +1,14 @@ + <h3 class="section">Scanning for Character Sets</h3> <p>Sometimes it is useful to find out which character set a particular character belongs to. One use for this is in determining which coding systems (see <a href="coding-systems">Coding Systems</a>) are capable of representing all of the text in question; another is to determine the font(s) for displaying that text. </p> <dl> <dt id="charset-after">Function: <strong>charset-after</strong> <em>&optional pos</em> +</dt> <dd><p>This function returns the charset of highest priority containing the character at position <var>pos</var> in the current buffer. If <var>pos</var> is omitted or <code>nil</code>, it defaults to the current value of point. If <var>pos</var> is out of range, the value is <code>nil</code>. </p></dd> +</dl> <dl> <dt id="find-charset-region">Function: <strong>find-charset-region</strong> <em>beg end &optional translation</em> +</dt> <dd> +<p>This function returns a list of the character sets of highest priority that contain characters in the current buffer between positions <var>beg</var> and <var>end</var>. </p> <p>The optional argument <var>translation</var> specifies a translation table to use for scanning the text (see <a href="translation-of-characters">Translation of Characters</a>). If it is non-<code>nil</code>, then each character in the region is translated through this table, and the value returned describes the translated characters instead of the characters actually in the buffer. </p> +</dd> +</dl> <dl> <dt id="find-charset-string">Function: <strong>find-charset-string</strong> <em>string &optional translation</em> +</dt> <dd><p>This function returns a list of character sets of highest priority that contain characters in <var>string</var>. It is just like <code>find-charset-region</code>, except that it applies to the contents of <var>string</var> instead of part of the current buffer. </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/Scanning-Charsets.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Scanning-Charsets.html</a> + </p> +</div> |
