diff options
| author | Kenichi Handa | 1998-10-19 00:40:10 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-10-19 00:40:10 +0000 |
| commit | c1a08b4c81b86edeae97fac439a25124b017863a (patch) | |
| tree | 0a4bea35540ed4047e35ec279ae159b2a68b89f5 /src | |
| parent | 69535a4bd59a410f92e4992955e74b02c378bb21 (diff) | |
| download | emacs-c1a08b4c81b86edeae97fac439a25124b017863a.tar.gz emacs-c1a08b4c81b86edeae97fac439a25124b017863a.zip | |
(Vauto_fill_chars, Qauto_fill_chars): New variables.
(syms_of_charset): Staticpro and initialize Qauto_fill_chars.
Declare auto-fill-chars as a Lisp variable and initialize it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/charset.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/charset.c b/src/charset.c index fec2888348d..85456203aff 100644 --- a/src/charset.c +++ b/src/charset.c | |||
| @@ -78,6 +78,11 @@ Lisp_Object Vcharset_list; | |||
| 78 | ID of a translation table is used to index this vector. */ | 78 | ID of a translation table is used to index this vector. */ |
| 79 | Lisp_Object Vtranslation_table_vector; | 79 | Lisp_Object Vtranslation_table_vector; |
| 80 | 80 | ||
| 81 | /* A char-table for characters which may invoke auto-filling. */ | ||
| 82 | Lisp_Object Vauto_fill_chars; | ||
| 83 | |||
| 84 | Lisp_Object Qauto_fill_chars; | ||
| 85 | |||
| 81 | /* Tables used by macros BYTES_BY_CHAR_HEAD and WIDTH_BY_CHAR_HEAD. */ | 86 | /* Tables used by macros BYTES_BY_CHAR_HEAD and WIDTH_BY_CHAR_HEAD. */ |
| 82 | int bytes_by_char_head[256]; | 87 | int bytes_by_char_head[256]; |
| 83 | int width_by_char_head[256]; | 88 | int width_by_char_head[256]; |
| @@ -1870,6 +1875,10 @@ syms_of_charset () | |||
| 1870 | staticpro (&Qcomposition); | 1875 | staticpro (&Qcomposition); |
| 1871 | CHARSET_SYMBOL (CHARSET_COMPOSITION) = Qcomposition; | 1876 | CHARSET_SYMBOL (CHARSET_COMPOSITION) = Qcomposition; |
| 1872 | 1877 | ||
| 1878 | Qauto_fill_chars = intern ("auto-fill-chars"); | ||
| 1879 | staticpro (&Qauto_fill_chars); | ||
| 1880 | Fput (Qauto_fill_chars, Qchar_table_extra_slots, make_number (0)); | ||
| 1881 | |||
| 1873 | defsubr (&Sdefine_charset); | 1882 | defsubr (&Sdefine_charset); |
| 1874 | defsubr (&Sgeneric_character_list); | 1883 | defsubr (&Sgeneric_character_list); |
| 1875 | defsubr (&Sget_unused_iso_final_char); | 1884 | defsubr (&Sget_unused_iso_final_char); |
| @@ -1952,6 +1961,13 @@ See also the docstring of `make-translation-table'."); | |||
| 1952 | DEFVAR_INT ("min-composite-char", &min_composite_char, | 1961 | DEFVAR_INT ("min-composite-char", &min_composite_char, |
| 1953 | "Minimum character code of a composite character."); | 1962 | "Minimum character code of a composite character."); |
| 1954 | min_composite_char = MIN_CHAR_COMPOSITION; | 1963 | min_composite_char = MIN_CHAR_COMPOSITION; |
| 1964 | |||
| 1965 | DEFVAR_LISP ("auto-fill-chars", &Vauto_fill_chars, | ||
| 1966 | "A char-table for characters which invoke auto-filling.\n\ | ||
| 1967 | Such characters has value t in this table."); | ||
| 1968 | Vauto_fill_chars = Fmake_char_table (Qauto_fill_chars, Qnil); | ||
| 1969 | CHAR_TABLE_SET (Vauto_fill_chars, ' ', Qt); | ||
| 1970 | CHAR_TABLE_SET (Vauto_fill_chars, '\n', Qt); | ||
| 1955 | } | 1971 | } |
| 1956 | 1972 | ||
| 1957 | #endif /* emacs */ | 1973 | #endif /* emacs */ |