aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2011-04-24 10:11:56 +0300
committerEli Zaretskii2011-04-24 10:11:56 +0300
commitfa6996bcd4d4c2acc4434e61bc266841c53e9d33 (patch)
tree08a3427641a8b013338ff94ccffaf63ab6930456
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.
-rw-r--r--etc/NEWS9
-rw-r--r--src/ChangeLog6
-rw-r--r--src/character.c18
3 files changed, 14 insertions, 19 deletions
diff --git a/etc/NEWS b/etc/NEWS
index aed90764fa1..09d54c41d69 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -134,7 +134,7 @@ image formats in Emacs. By default, Emacs links with the ImageMagick
134libraries if they are present at build time. This needs ImageMagick 134libraries if they are present at build time. This needs ImageMagick
1356.2.8 or newer (versions newer than 6.0.7 _may_ work but have not been 1356.2.8 or newer (versions newer than 6.0.7 _may_ work but have not been
136tested). To disable ImageMagick support, use the configure option 136tested). To disable ImageMagick support, use the configure option
137`--without-imagemagick'. 137`--without-imagemagick'.
138 138
139The new function `imagemagick-types' returns a list of image file 139The new function `imagemagick-types' returns a list of image file
140extensions that your installation of ImageMagick supports. The 140extensions that your installation of ImageMagick supports. The
@@ -720,6 +720,13 @@ soap-inspect.el is an interactive inspector for SOAP WSDL structures.
720 720
721* Incompatible Lisp Changes in Emacs 24.1 721* Incompatible Lisp Changes in Emacs 24.1
722 722
723---
724** `char-direction-table' and the associated function `char-direction'
725were deleted. They were buggy and inferior to the new support of
726bidirectional editing introduced in Emacs 24. If you need the
727bidirectional properties of a character, use `get-char-code-property'
728with the last argument `bidi-class'.
729
723** `copy-directory' now copies the source directory as a subdirectory 730** `copy-directory' now copies the source directory as a subdirectory
724of the target directory, if the latter is an existing directory. The 731of the target directory, if the latter is an existing directory. The
725new optional arg COPY-CONTENTS, if non-nil, makes the function copy 732new optional arg COPY-CONTENTS, if non-nil, makes the function copy
diff --git a/src/ChangeLog b/src/ChangeLog
index 831fb6afcd0..e939a575c6a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12011-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
12011-04-23 Eli Zaretskii <eliz@gnu.org> 72011-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
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);