From f635daa1e056a564d13b4ef1ea8d1a4ff5b7401c Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Thu, 18 Aug 2011 11:53:29 -0400 Subject: 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. --- etc/NEWS | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'etc') diff --git a/etc/NEWS b/etc/NEWS index 7b46259f7d..ec863dacef 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1047,15 +1047,16 @@ of function value which looks like (closure ENV ARGS &rest BODY). declared as dynamically bound. +++ -** New function `string-mark-left-to-right'. +** New function `bidi-string-mark-left-to-right'. Given a string containing right-to-left (RTL) script, this function -returns another string with a terminating LRM (left-to-right mark) -character. If this string is inserted into a buffer, Emacs treats the -LRM as the end of an RTL segment and displays following text as LTR. +returns another string which can be safely inserted into a buffer as a +distinct RTL "segment", without causing any following text to be +displayed as RTL. (This is done by appending a Unicode "left-to-right +mark" character.) This is useful when the buffer has overall left-to-right (LTR) -paragraph direction and you need to insert a string whose contents -(and hence directionality) are not known in advance. +paragraph direction and you need to insert a string whose contents and +directionality are not known in advance. ** pre/post-command-hook are not reset to nil upon error. Instead, the offending function is removed. -- cgit v1.2.3