Subject: 24.0.50; bidi: problem using 'display' text property

From: Ari Roponen <[email-masked]>
Date: Sat, 10 Apr 2010 10:46:42 +0300

Hi,

there seems to be a problem handling 'display' text property in
bidi. The bug can be reproduced with this:

  (progn
    (switch-to-buffer "*tmp*")
    (setq bidi-display-reordering t)
    (insert "first\nsecond\n" (propertize "III" 'display "third") "\nfourth"))

After evaluating the form the buffer looks like this:
('|' represents the cursor):

-------------
first
second
third
II
fourth|
-------------

The extra line showing "II" disappears when disabling bidi.

In GNU Emacs 24.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.19.7)
 of 2010-04-09 on arirop
Windowing system distributor `Fedora Project', version 11.0.10799901

-- 
Ari Roponen