diff options
| author | Chong Yidong | 2011-08-18 11:53:29 -0400 |
|---|---|---|
| committer | Chong Yidong | 2011-08-18 11:53:29 -0400 |
| commit | f635daa1e056a564d13b4ef1ea8d1a4ff5b7401c (patch) | |
| tree | 6b6f721809174e63545eccd2ff502ff67356c9fa /etc | |
| parent | 156bffbe26748a0e60ec7125da4b960a0b6b455f (diff) | |
| download | emacs-f635daa1e056a564d13b4ef1ea8d1a4ff5b7401c.tar.gz emacs-f635daa1e056a564d13b4ef1ea8d1a4ff5b7401c.zip | |
Add L and R categories to standard category table, and use them.
* lisp/international/characters.el: Add L and R categories.
* lisp/subr.el (bidi-string-mark-left-to-right): Rename from
string-mark-left-to-right. Use category search.
* lisp/buff-menu.el (Buffer-menu-buffer+size): Callers changed.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 13 |
1 files changed, 7 insertions, 6 deletions
| @@ -1047,15 +1047,16 @@ of function value which looks like (closure ENV ARGS &rest BODY). | |||
| 1047 | declared as dynamically bound. | 1047 | declared as dynamically bound. |
| 1048 | 1048 | ||
| 1049 | +++ | 1049 | +++ |
| 1050 | ** New function `string-mark-left-to-right'. | 1050 | ** New function `bidi-string-mark-left-to-right'. |
| 1051 | Given a string containing right-to-left (RTL) script, this function | 1051 | Given a string containing right-to-left (RTL) script, this function |
| 1052 | returns another string with a terminating LRM (left-to-right mark) | 1052 | returns another string which can be safely inserted into a buffer as a |
| 1053 | character. If this string is inserted into a buffer, Emacs treats the | 1053 | distinct RTL "segment", without causing any following text to be |
| 1054 | LRM as the end of an RTL segment and displays following text as LTR. | 1054 | displayed as RTL. (This is done by appending a Unicode "left-to-right |
| 1055 | mark" character.) | ||
| 1055 | 1056 | ||
| 1056 | This is useful when the buffer has overall left-to-right (LTR) | 1057 | This is useful when the buffer has overall left-to-right (LTR) |
| 1057 | paragraph direction and you need to insert a string whose contents | 1058 | paragraph direction and you need to insert a string whose contents and |
| 1058 | (and hence directionality) are not known in advance. | 1059 | directionality are not known in advance. |
| 1059 | 1060 | ||
| 1060 | ** pre/post-command-hook are not reset to nil upon error. | 1061 | ** pre/post-command-hook are not reset to nil upon error. |
| 1061 | Instead, the offending function is removed. | 1062 | Instead, the offending function is removed. |