aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorEli Zaretskii2014-12-02 16:13:47 +0200
committerEli Zaretskii2014-12-02 16:13:47 +0200
commitdd601050e7db69f322eea09d99751d8e6363b153 (patch)
tree41457d53d1ea7c37e452c0c346177e6188bea0b2 /etc
parenta92789b1fccf7ae9a39ec1cc9316a18e01d905bb (diff)
downloademacs-dd601050e7db69f322eea09d99751d8e6363b153.tar.gz
emacs-dd601050e7db69f322eea09d99751d8e6363b153.zip
Allow to search for characters whose bidi directionality was overridden.
src/bidi.c (bidi_find_first_overridden): New function. src/xdisp.c (Fbidi_find_overridden_directionality): New function. (syms_of_xdisp): Defsubr it. src/dispextern.h (bidi_find_first_overridden): Add prototype. doc/lispref/display.texi (Bidirectional Display): Document 'bidi-find-overridden-directionality'. etc/NEWS: Mention 'bidi-find-overridden-directionality'.
Diffstat (limited to 'etc')
-rw-r--r--etc/ChangeLog4
-rw-r--r--etc/NEWS7
2 files changed, 11 insertions, 0 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog
index 09dfd7f2e35..4f672dfce5e 100644
--- a/etc/ChangeLog
+++ b/etc/ChangeLog
@@ -1,3 +1,7 @@
12014-12-02 Eli Zaretskii <eliz@gnu.org>
2
3 * NEWS: Mention 'bidi-find-overridden-directionality'.
4
12014-11-29 Paul Eggert <eggert@cs.ucla.edu> 52014-11-29 Paul Eggert <eggert@cs.ucla.edu>
2 6
3 Lessen focus on ChangeLog files, as opposed to change log entries. 7 Lessen focus on ChangeLog files, as opposed to change log entries.
diff --git a/etc/NEWS b/etc/NEWS
index 6c636cf3095..bb016ee8944 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -98,6 +98,13 @@ environment. For the time being this is implemented for modern POSIX
98systems and for MS-Windows, for other systems they fall back to their 98systems and for MS-Windows, for other systems they fall back to their
99counterparts `string-lessp' and `string-equal'. 99counterparts `string-lessp' and `string-equal'.
100 100
101+++
102** The new function `bidi-find-overridden-directionality' allows to
103find characters whose directionality was, perhaps maliciously,
104overridden by directional override control characters. Lisp programs
105can use this to detect potential phishing of URLs and other links that
106exploits bidirectional display reordering.
107
101*** The ls-lisp package uses `string-collate-lessp' to sort file names. 108*** The ls-lisp package uses `string-collate-lessp' to sort file names.
102If you want the old, locale-independent sorting, customize the new 109If you want the old, locale-independent sorting, customize the new
103option `ls-lisp-use-string-collate' to a nil value. 110option `ls-lisp-use-string-collate' to a nil value.