diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/bidi.c | 2 | ||||
| -rw-r--r-- | src/xdisp.c | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/bidi.c b/src/bidi.c index 1430d223313..cb94c4e0d7a 100644 --- a/src/bidi.c +++ b/src/bidi.c | |||
| @@ -404,7 +404,7 @@ bidi_mirror_char (int c) | |||
| 404 | static bidi_bracket_type_t | 404 | static bidi_bracket_type_t |
| 405 | bidi_paired_bracket_type (int c) | 405 | bidi_paired_bracket_type (int c) |
| 406 | { | 406 | { |
| 407 | if (c == BIDI_EOB) | 407 | if (c == BIDI_EOB || bidi_inhibit_bpa) |
| 408 | return BIDI_BRACKET_NONE; | 408 | return BIDI_BRACKET_NONE; |
| 409 | if (c < 0 || c > MAX_CHAR) | 409 | if (c < 0 || c > MAX_CHAR) |
| 410 | emacs_abort (); | 410 | emacs_abort (); |
diff --git a/src/xdisp.c b/src/xdisp.c index c4d23be4cde..2467b336f4a 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -34839,6 +34839,14 @@ Intended for use during debugging and for testing bidi display; | |||
| 34839 | see biditest.el in the test suite. */); | 34839 | see biditest.el in the test suite. */); |
| 34840 | inhibit_bidi_mirroring = false; | 34840 | inhibit_bidi_mirroring = false; |
| 34841 | 34841 | ||
| 34842 | DEFVAR_BOOL ("bidi-inhibit-bpa", bidi_inhibit_bpa, | ||
| 34843 | doc: /* Non-nil means inhibit the Bidirectional Parentheses Algorithm. | ||
| 34844 | Disabling the BPA makes redisplay faster, but might produce incorrect | ||
| 34845 | display reordering of bidirectional text with embedded parentheses and | ||
| 34846 | other bracket characters whose 'paired-bracket' Unicode property is | ||
| 34847 | non-nil, see `get-char-code-property'. */); | ||
| 34848 | bidi_inhibit_bpa = false; | ||
| 34849 | |||
| 34842 | #ifdef GLYPH_DEBUG | 34850 | #ifdef GLYPH_DEBUG |
| 34843 | DEFVAR_BOOL ("inhibit-try-window-id", inhibit_try_window_id, | 34851 | DEFVAR_BOOL ("inhibit-try-window-id", inhibit_try_window_id, |
| 34844 | doc: /* Inhibit try_window_id display optimization. */); | 34852 | doc: /* Inhibit try_window_id display optimization. */); |