On Thu, 20 Feb 2020, 14:36 Mattias Engdegård, <mattiase@acm.org> wrote:
19 feb. 2020 kl. 18.47 skrev Eli Zaretskii <eliz@gnu.org>:

> Ah, yes.  Set bidi-inhibit-bpa non-nil, and Bob's your uncle.

Fine, so how do we proceed from here? I presume that the bug triggers when the bidi cache limit of 50000 elements is reached (or maybe MAX_BPA_STACK). Turn off BPA temporarily, for the current line or paragraph, when this occurs? Or for the entire buffer, on the grounds that it's hardly right-to-left text anyway?


Doesn't so-long-mode turn off bpa?