Subject: bug#72287: closed (Re: bug#72287: Emacs 29; RTL replacing display bug on 1st line)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 17 Aug 2024 08:10:02 +0000

Your bug report

#72287: Emacs 29; RTL replacing display bug on 1st line

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
72287: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=72287
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#72287: Emacs 29; RTL replacing display bug on 1st line
From: Eli Zaretskii <[email-masked]>
To: [email-masked]
Cc: [email-masked]
Date: Sat, 17 Aug 2024 11:09:01 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

> Cc: [email-masked]
> Date: Thu, 25 Jul 2024 21:27:47 +0300
> From: Eli Zaretskii <[email-masked]>
> 
> > From: JD Smith <[email-masked]>
> > Date: Thu, 25 Jul 2024 08:29:45 -0400
> > 
> > With bidi-paragraph-direction=right-to-left, replacing 'display properties are sometimes reversed on the 1st displayed line of text. 
> > 
> > (let* ((w (window-font-width))
> >        (h (window-font-height))
> >        (face )
> >        (str (cl-loop for col in '("red" "green" "blue" "cyan")
> >                      concat "  "
> >                      concat (propertize " " 'face `(:background ,col)))))
> >     (dotimes (i 10)
> >       (insert "\n" (propertize " " 'display str) (format ";;  line %d" i))))
> > 
> > Evaluate in *scratch* and scroll the color bars off the top of the screen.  Try again with bidi-paragraph-direction=right-to-left and the color order will invert and the bars shift by one char.   
> > 
> > Verified in Emacs 29 emacs-mac and NS builds.
> 
> Thanks, should be fixed now on the master branch.

No further comments, so I presume the bug is indeed fixed, and I'm now
closing it.

Subject: Emacs 29; RTL replacing display bug on 1st line
From: JD Smith <[email-masked]>
To: [email-masked]
Date: Thu, 25 Jul 2024 08:29:45 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

With bidi-paragraph-direction=right-to-left, replacing 'display properties are sometimes reversed on the 1st displayed line of text. 

(let* ((w (window-font-width))
       (h (window-font-height))
       (face )
       (str (cl-loop for col in '("red" "green" "blue" "cyan")
                     concat "  "
                     concat (propertize " " 'face `(:background ,col)))))
    (dotimes (i 10)
      (insert "\n" (propertize " " 'display str) (format ";;  line %d" i))))

Evaluate in *scratch* and scroll the color bars off the top of the screen.  Try again with bidi-paragraph-direction=right-to-left and the color order will invert and the bars shift by one char.   

Verified in Emacs 29 emacs-mac and NS builds.