aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2002-07-26 06:20:29 +0000
committerKenichi Handa2002-07-26 06:20:29 +0000
commitc57f3328cd5c0f49f009026b5aa5c9f508d45105 (patch)
tree073162adbae11ed04871c25dbde008d585ae34f6 /src
parent56f86f3ae976e4fea2b17ea6c02a7cf268f1f5b1 (diff)
downloademacs-c57f3328cd5c0f49f009026b5aa5c9f508d45105.tar.gz
emacs-c57f3328cd5c0f49f009026b5aa5c9f508d45105.zip
(Vscript_alist): This variable deleted.
(Vchar_script_table, Qchar_script_table): New variable. (syms_of_character): Declare Vchar_script_table as a lisp variable and initialize it.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/character.c25
2 files changed, 18 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 679f9bc440a..6514a978463 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -11,6 +11,8 @@
11 11
12 * ccl.c (Fccl_execute_on_string): Add `const' to local variables. 12 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
13 13
14 * character.h (Vchar_script_table): Extern it.
15
14 * character.c (Vscript_alist): This variable deleted. 16 * character.c (Vscript_alist): This variable deleted.
15 (Vchar_script_table, Qchar_script_table): New variable. 17 (Vchar_script_table, Qchar_script_table): New variable.
16 (syms_of_character): Declare Vchar_script_table as a lisp variable 18 (syms_of_character): Declare Vchar_script_table as a lisp variable
diff --git a/src/character.c b/src/character.c
index 6af2698d6b0..eb0f8c84d04 100644
--- a/src/character.c
+++ b/src/character.c
@@ -77,8 +77,11 @@ Lisp_Object Vchar_direction_table;
77unsigned char *_fetch_multibyte_char_p; 77unsigned char *_fetch_multibyte_char_p;
78int _fetch_multibyte_char_len; 78int _fetch_multibyte_char_len;
79 79
80/* Alist of scripts vs character ranges. */ 80/* Char table of scripts. */
81Lisp_Object Vscript_alist; 81Lisp_Object Vchar_script_table;
82
83static Lisp_Object Qchar_script_table;
84
82 85
83 86
84 87
@@ -920,13 +923,17 @@ A char-table for width (columns) of each character. */);
920 doc: /* A char-table for each printable character. */); 923 doc: /* A char-table for each printable character. */);
921 Vprintable_chars = Fmake_char_table (Qnil, Qnil); 924 Vprintable_chars = Fmake_char_table (Qnil, Qnil);
922 925
923 DEFVAR_LISP ("script-alist", &Vscript_alist, 926 DEFVAR_LISP ("char-script-table", &Vchar_script_table,
924 doc: /* Alist of scripts vs the corresponding character ranges. 927 doc: /* Char table of script symbols.
925Each element has this form: 928It has one extra slot whose value is a list of script symbols. */);
926 ( SCRIPT (FROM-1 . TO-1) (FROM-2 . TO-2) ...) 929
927SCRIPT is a symbol representing a script name. 930 /* Intern this now in case it isn't already done.
928FROM-n and TO-n specifies ranges of characters that belongs to SCRIPT. */); 931 Setting this variable twice is harmless.
929 Vscript_alist = Qnil; 932 But don't staticpro it here--that is done in alloc.c. */
933 Qchar_table_extra_slots = intern ("char-table-extra-slots");
934 DEFSYM (Qchar_script_table, "char-script-table");
935 Fput (Qchar_script_table, Qchar_table_extra_slots, make_number (1));
936 Vchar_script_table = Fmake_char_table (Qchar_script_table, Qnil);
930} 937}
931 938
932#endif /* emacs */ 939#endif /* emacs */