bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9219: 24.0.50; bidi switches to R-to-L when I don't want it to


From: Florian Beck
Subject: bug#9219: 24.0.50; bidi switches to R-to-L when I don't want it to
Date: Wed, 03 Aug 2011 20:50:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> Admittedly to the right, because I use `beginning-of-visual-line' to
>> get to what I interpret as the beginning of the paragraph. So its
>> 
>>                     blah blah A|
>> 
>> and I get
>> 
>> A|M blah blah
>> 
>> I'd expect the marker to come first.
>
> I still cannot reproduce this: I get the LRM character displayed
> _before_ A.  Something else is missing in your description.

Took me a while to find it myself: visual-line-mode

Switch it on and add "abcd " until you have a couple of lines, go to the
first character.

(In *scratch*:
M-x erase buffer
y
M-x text-mode
M-x visual-line-mode
[create text]
)

Displays like this (A is the alef, M the marker):

|abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd
abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd
abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd
abcd abcd abcd abcd abcd abcd

C-x 8 <ret> HEBREW LETTER ALEF <ret>

 abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcdA
  abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd
  abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd
                                         |abcd abcd abcd abcd abcd abcd

<up>

abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd a|bcd abcd abcdA
  abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd
  abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd
                                          abcd abcd abcd abcd abcd abcd

Now position the cursor like this:

 abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcdA
 abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd ab|cd
  abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd
                                          abcd abcd abcd abcd abcd abcd

<up>
M-x (beginning-of-visual-line)
C-x 8 <ret> LEFT-TO-RIGHT MARK <ret>

And now I have:

A|Mabcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd
abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd
abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd
abcd abcd abcd abcd abcd abcd


-- 
Florian Beck





reply via email to

[Prev in Thread] Current Thread [Next in Thread]