GNU bug report logs - #41506
two newlines followed by RTL text aligns left instead of right

Previous Next

Package: emacs;

Reported by: Pip Cet <pipcet <at> gmail.com>

Date: Sun, 24 May 2020 13:06:01 UTC

Severity: normal

Tags: confirmed

Found in version 28.0.50

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Pip Cet <pipcet <at> gmail.com>
Cc: 41506 <at> debbugs.gnu.org
Subject: bug#41506: 28.0.50; RTL problem
Date: Tue, 02 Jun 2020 19:34:31 +0300
> From: Pip Cet <pipcet <at> gmail.com>
> Date: Tue, 2 Jun 2020 10:17:55 +0000
> Cc: 41506 <at> debbugs.gnu.org
> 
> > It's a bug, but one that's very tricky to fix, AFAIR.  If you insert
> > or delete a single character, the display becomes correct.
> 
> The attached patch seems to avoid the problem, but I'm sure I'm
> missing something.

This condition was added 11 years ago, when I just started integrating
bidi.c with Emacs.  The commit log message and the comment both say I
had some real problem on my hands that this condition fixed.  However,
I have now thrown several use cases on the patched code, and could see
no problem.

So I guess whatever issues I had back then were meanwhile solved "by
other means", and you should install this patch.  If there is indeed
some subtlety here, it will present itself sooner or later (like, in
another 11 years).

> I suspect what might have been meant is that narrowing an LTR
> paragraph to a line containing STRONG_R text shouldn't result in RTL
> display, but it does...

No, this works as designed: the Emacs display engine always behaves as
if there's nothing before beginning of the narrowed region.

Thanks.




This bug report was last modified 5 years and 10 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.