diff options
| author | Eli Zaretskii | 2014-10-14 16:17:16 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2014-10-14 16:17:16 +0300 |
| commit | 3fe73df071b1d354c7e35f30a105c3133c9c38a4 (patch) | |
| tree | e08b4c97fa25acb0f340903f6b87f636fde2763a /src | |
| parent | c1621a49bdadc92c6c60965078dc9d83b2154770 (diff) | |
| download | emacs-3fe73df071b1d354c7e35f30a105c3133c9c38a4.tar.gz emacs-3fe73df071b1d354c7e35f30a105c3133c9c38a4.zip | |
Implement inhibit-bidi-mirroring; improve biditest.el.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 70a1a2b8703..a1e78f1129a 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -6876,7 +6876,8 @@ get_next_display_element (struct it *it) | |||
| 6876 | is R..." */ | 6876 | is R..." */ |
| 6877 | /* FIXME: Do we need an exception for characters from display | 6877 | /* FIXME: Do we need an exception for characters from display |
| 6878 | tables? */ | 6878 | tables? */ |
| 6879 | if (it->bidi_p && it->bidi_it.type == STRONG_R) | 6879 | if (it->bidi_p && it->bidi_it.type == STRONG_R |
| 6880 | && !inhibit_bidi_mirroring) | ||
| 6880 | it->c = bidi_mirror_char (it->c); | 6881 | it->c = bidi_mirror_char (it->c); |
| 6881 | /* Map via display table or translate control characters. | 6882 | /* Map via display table or translate control characters. |
| 6882 | IT->c, IT->len etc. have been set to the next character by | 6883 | IT->c, IT->len etc. have been set to the next character by |
| @@ -30803,6 +30804,12 @@ To add a prefix to continuation lines, use `wrap-prefix'. */); | |||
| 30803 | doc: /* Non-nil means don't free realized faces. Internal use only. */); | 30804 | doc: /* Non-nil means don't free realized faces. Internal use only. */); |
| 30804 | inhibit_free_realized_faces = 0; | 30805 | inhibit_free_realized_faces = 0; |
| 30805 | 30806 | ||
| 30807 | DEFVAR_BOOL ("inhibit-bidi-mirroring", inhibit_bidi_mirroring, | ||
| 30808 | doc: /* Non-nil means don't mirror characters even when bidi context requires that. | ||
| 30809 | Intended for use during debugging and for testing bidi display; | ||
| 30810 | see biditest.el in the test suite. */); | ||
| 30811 | inhibit_bidi_mirroring = 0; | ||
| 30812 | |||
| 30806 | #ifdef GLYPH_DEBUG | 30813 | #ifdef GLYPH_DEBUG |
| 30807 | DEFVAR_BOOL ("inhibit-try-window-id", inhibit_try_window_id, | 30814 | DEFVAR_BOOL ("inhibit-try-window-id", inhibit_try_window_id, |
| 30808 | doc: /* Inhibit try_window_id display optimization. */); | 30815 | doc: /* Inhibit try_window_id display optimization. */); |