all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#72287: Emacs 29; RTL replacing display bug on 1st line
@ 2024-07-25 12:29 JD Smith
  2024-07-25 18:27 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: JD Smith @ 2024-07-25 12:29 UTC (permalink / raw)
  To: 72287

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.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-08-17  8:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-25 12:29 bug#72287: Emacs 29; RTL replacing display bug on 1st line JD Smith
2024-07-25 18:27 ` Eli Zaretskii
2024-08-17  8:09   ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.