]> git.eshelyaron.com Git - emacs.git/commit
Improve detection of suspiciously reordered text segments
authorEli Zaretskii <eliz@gnu.org>
Sun, 7 Nov 2021 12:22:15 +0000 (14:22 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 7 Nov 2021 12:22:15 +0000 (14:22 +0200)
commit75f4af0b303418f7bf107741684ea50b8c52b7f7
tree1bb12abfdad3873168884811b605a3bbd6314ddd
parente9a5084c455e7f62c416a05841a6b51f69dd786b
Improve detection of suspiciously reordered text segments

* src/bidi.c (bidi_find_first_overridden): Detect reordered weak
and neutral characters as well.

* lisp/international/mule-cmds.el
(highlight-confusing-reorderings): Count and announce how many
instances were found.

* test/src/xdisp-tests.el
(xdisp-tests--find-directional-overrides-case-3): New test.
(xdisp-tests--find-directional-overrides-case-2): Adjust expected
result.
lisp/international/mule-cmds.el
src/bidi.c
test/src/xdisp-tests.el