diff options
| author | Eli Zaretskii | 2011-04-24 10:11:56 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2011-04-24 10:11:56 +0300 |
| commit | fa6996bcd4d4c2acc4434e61bc266841c53e9d33 (patch) | |
| tree | 08a3427641a8b013338ff94ccffaf63ab6930456 /src | |
| parent | c8d173eb1e2475af9d972efafb684f57f18c8374 (diff) | |
| download | emacs-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')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/character.c | 18 |
2 files changed, 6 insertions, 18 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 831fb6afcd0..e939a575c6a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-04-24 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * character.c (Fchar_direction): Function deleted. | ||
| 4 | (syms_of_character): Don't defsubr it. | ||
| 5 | <char-direction-table>: Deleted. | ||
| 6 | |||
| 1 | 2011-04-23 Eli Zaretskii <eliz@gnu.org> | 7 | 2011-04-23 Eli Zaretskii <eliz@gnu.org> |
| 2 | 8 | ||
| 3 | Fix doprnt so it could be used again safely in `verror'. (Bug#8435) | 9 | Fix doprnt so it could be used again safely in `verror'. (Bug#8435) |
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 | ||
| 496 | DEFUN ("char-direction", Fchar_direction, Schar_direction, 1, 1, 0, | ||
| 497 | doc: /* Return the direction of CHAR. | ||
| 498 | The returned value is 0 for left-to-right and 1 for right-to-left. | ||
| 499 | usage: (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); |