aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorChong Yidong2011-08-12 11:43:30 -0400
committerChong Yidong2011-08-12 11:43:30 -0400
commit9ccaaa4be77d1698784cceb983ef987cc80212c2 (patch)
tree4b9f4e801d8a5069933a3b2bad23d3e62cdb0c60 /etc
parent6cd18349b892a5c432991e8231364e7a4d1ea33d (diff)
downloademacs-9ccaaa4be77d1698784cceb983ef987cc80212c2.tar.gz
emacs-9ccaaa4be77d1698784cceb983ef987cc80212c2.zip
Fix behavior of string-mark-left-to-right.
* lisp/subr.el (string-mark-left-to-right): Search the entire string for RTL script, not just the terminating character. Doc fix.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS14
1 files changed, 9 insertions, 5 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 6f8c125f7f9..1a788e7f6f9 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1038,11 +1038,15 @@ of function value which looks like (closure ENV ARGS &rest BODY).
1038*** New function `special-variable-p' to check whether a variable is 1038*** New function `special-variable-p' to check whether a variable is
1039declared as dynamically bound. 1039declared as dynamically bound.
1040 1040
1041** New function `string-mark-left-to-right' appends a Unicode LRM 1041** New function `string-mark-left-to-right'.
1042(left-to-right mark) character to a string if it terminates in 1042Given a string containing right-to-left (RTL) script, this function
1043right-to-left script. This is useful when the buffer has overall 1043returns another string with a terminating LRM (left-to-right mark)
1044left-to-right paragraph direction and you need to insert a string 1044character. If this string is inserted into a buffer, Emacs treats the
1045whose contents (and directionality) are not known in advance. 1045LRM as the end of an RTL segment and displays following text as LTR.
1046
1047This is useful when the buffer has overall left-to-right (LTR)
1048paragraph direction and you need to insert a string whose contents
1049(and hence directionality) are not known in advance.
1046 1050
1047** pre/post-command-hook are not reset to nil upon error. 1051** pre/post-command-hook are not reset to nil upon error.
1048Instead, the offending function is removed. 1052Instead, the offending function is removed.