diff options
| author | Eli Zaretskii | 2014-12-02 16:13:47 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2014-12-02 16:13:47 +0200 |
| commit | dd601050e7db69f322eea09d99751d8e6363b153 (patch) | |
| tree | 41457d53d1ea7c37e452c0c346177e6188bea0b2 /etc | |
| parent | a92789b1fccf7ae9a39ec1cc9316a18e01d905bb (diff) | |
| download | emacs-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/ChangeLog | 4 | ||||
| -rw-r--r-- | etc/NEWS | 7 |
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 @@ | |||
| 1 | 2014-12-02 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * NEWS: Mention 'bidi-find-overridden-directionality'. | ||
| 4 | |||
| 1 | 2014-11-29 Paul Eggert <eggert@cs.ucla.edu> | 5 | 2014-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. |
| @@ -98,6 +98,13 @@ environment. For the time being this is implemented for modern POSIX | |||
| 98 | systems and for MS-Windows, for other systems they fall back to their | 98 | systems and for MS-Windows, for other systems they fall back to their |
| 99 | counterparts `string-lessp' and `string-equal'. | 99 | counterparts `string-lessp' and `string-equal'. |
| 100 | 100 | ||
| 101 | +++ | ||
| 102 | ** The new function `bidi-find-overridden-directionality' allows to | ||
| 103 | find characters whose directionality was, perhaps maliciously, | ||
| 104 | overridden by directional override control characters. Lisp programs | ||
| 105 | can use this to detect potential phishing of URLs and other links that | ||
| 106 | exploits 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. |
| 102 | If you want the old, locale-independent sorting, customize the new | 109 | If you want the old, locale-independent sorting, customize the new |
| 103 | option `ls-lisp-use-string-collate' to a nil value. | 110 | option `ls-lisp-use-string-collate' to a nil value. |