diff options
| author | Kenichi Handa | 2003-01-30 02:25:12 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-01-30 02:25:12 +0000 |
| commit | d5b3330910194773ce8f44800ddb11ca932ef901 (patch) | |
| tree | a7d65d53b9b7dc6a4b290cac07493f356f0d144a /src | |
| parent | 8dcbea820b5aa9258b3696ba74138ddbe512dac5 (diff) | |
| download | emacs-d5b3330910194773ce8f44800ddb11ca932ef901.tar.gz emacs-d5b3330910194773ce8f44800ddb11ca932ef901.zip | |
(Fcharset_id_internal): New function.
(syms_of_charset): Defsubr it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/charset.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/charset.c b/src/charset.c index a1dc6894309..431e06a0c02 100644 --- a/src/charset.c +++ b/src/charset.c | |||
| @@ -2019,6 +2019,20 @@ usage: (set-charset-priority &rest charsets) */) | |||
| 2019 | 2019 | ||
| 2020 | return Qnil; | 2020 | return Qnil; |
| 2021 | } | 2021 | } |
| 2022 | |||
| 2023 | DEFUN ("charset-id-internal", Fcharset_id_internal, Scharset_id_internal, | ||
| 2024 | 0, 1, 0, | ||
| 2025 | doc: /* Internal use only. | ||
| 2026 | Return charset identification number of CHARSET. */) | ||
| 2027 | (charset) | ||
| 2028 | Lisp_Object charset; | ||
| 2029 | { | ||
| 2030 | int id; | ||
| 2031 | |||
| 2032 | CHECK_CHARSET_GET_ID (charset, id); | ||
| 2033 | return make_number (id); | ||
| 2034 | } | ||
| 2035 | |||
| 2022 | 2036 | ||
| 2023 | void | 2037 | void |
| 2024 | init_charset () | 2038 | init_charset () |
| @@ -2110,6 +2124,7 @@ syms_of_charset () | |||
| 2110 | defsubr (&Sclear_charset_maps); | 2124 | defsubr (&Sclear_charset_maps); |
| 2111 | defsubr (&Scharset_priority_list); | 2125 | defsubr (&Scharset_priority_list); |
| 2112 | defsubr (&Sset_charset_priority); | 2126 | defsubr (&Sset_charset_priority); |
| 2127 | defsubr (&Scharset_id_internal); | ||
| 2113 | 2128 | ||
| 2114 | DEFVAR_LISP ("charset-map-directory", &Vcharset_map_directory, | 2129 | DEFVAR_LISP ("charset-map-directory", &Vcharset_map_directory, |
| 2115 | doc: /* Directory of charset map files that come with GNU Emacs. | 2130 | doc: /* Directory of charset map files that come with GNU Emacs. |