aboutsummaryrefslogtreecommitdiffstats
path: root/src/character.c
diff options
context:
space:
mode:
authorEli Zaretskii2011-04-24 10:11:56 +0300
committerEli Zaretskii2011-04-24 10:11:56 +0300
commitfa6996bcd4d4c2acc4434e61bc266841c53e9d33 (patch)
tree08a3427641a8b013338ff94ccffaf63ab6930456 /src/character.c
parentc8d173eb1e2475af9d972efafb684f57f18c8374 (diff)
downloademacs-fa6996bcd4d4c2acc4434e61bc266841c53e9d33.tar.gz
emacs-fa6996bcd4d4c2acc4434e61bc266841c53e9d33.zip
Delete char-direction-table and char-direction.
See http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00675.html for the reasons. src/character.c (Fchar_direction): Function deleted. (syms_of_character): Don't defsubr it. <char-direction-table>: Deleted. etc/NEWS: Document the removal.
Diffstat (limited to 'src/character.c')
-rw-r--r--src/character.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/character.c b/src/character.c
index 6d27371c7e9..8bab709480b 100644
--- a/src/character.c
+++ b/src/character.c
@@ -493,19 +493,6 @@ usage: (string-width STRING) */)
493 return val; 493 return val;
494} 494}
495 495
496DEFUN ("char-direction", Fchar_direction, Schar_direction, 1, 1, 0,
497 doc: /* Return the direction of CHAR.
498The returned value is 0 for left-to-right and 1 for right-to-left.
499usage: (char-direction CHAR) */)
500 (Lisp_Object ch)
501{
502 int c;
503
504 CHECK_CHARACTER (ch);
505 c = XINT (ch);
506 return CHAR_TABLE_REF (Vchar_direction_table, c);
507}
508
509/* Return the number of characters in the NBYTES bytes at PTR. 496/* Return the number of characters in the NBYTES bytes at PTR.
510 This works by looking at the contents and checking for multibyte 497 This works by looking at the contents and checking for multibyte
511 sequences while assuming that there's no invalid sequence. 498 sequences while assuming that there's no invalid sequence.
@@ -1037,7 +1024,6 @@ syms_of_character (void)
1037 defsubr (&Smultibyte_char_to_unibyte); 1024 defsubr (&Smultibyte_char_to_unibyte);
1038 defsubr (&Schar_width); 1025 defsubr (&Schar_width);
1039 defsubr (&Sstring_width); 1026 defsubr (&Sstring_width);
1040 defsubr (&Schar_direction);
1041 defsubr (&Sstring); 1027 defsubr (&Sstring);
1042 defsubr (&Sunibyte_string); 1028 defsubr (&Sunibyte_string);
1043 defsubr (&Schar_resolve_modifiers); 1029 defsubr (&Schar_resolve_modifiers);
@@ -1066,10 +1052,6 @@ A char-table for width (columns) of each character. */);
1066 char_table_set_range (Vchar_width_table, MAX_5_BYTE_CHAR + 1, MAX_CHAR, 1052 char_table_set_range (Vchar_width_table, MAX_5_BYTE_CHAR + 1, MAX_CHAR,
1067 make_number (4)); 1053 make_number (4));
1068 1054
1069 DEFVAR_LISP ("char-direction-table", Vchar_direction_table,
1070 doc: /* A char-table for direction of each character. */);
1071 Vchar_direction_table = Fmake_char_table (Qnil, make_number (1));
1072
1073 DEFVAR_LISP ("printable-chars", Vprintable_chars, 1055 DEFVAR_LISP ("printable-chars", Vprintable_chars,
1074 doc: /* A char-table for each printable character. */); 1056 doc: /* A char-table for each printable character. */);
1075 Vprintable_chars = Fmake_char_table (Qnil, Qnil); 1057 Vprintable_chars = Fmake_char_table (Qnil, Qnil);