[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: BIDI, LaTeX (auctex) and the «evil» backslash
From: |
Eli Zaretskii |
Subject: |
Re: BIDI, LaTeX (auctex) and the «evil» backslash |
Date: |
Sat, 21 May 2016 21:34:33 +0300 |
> From: Uwe Brauer <address@hidden>
> Cc: Uwe Brauer <address@hidden>, address@hidden
> Date: Sat, 21 May 2016 17:44:32 +0000
>
> > The last one is possible, of course (this is Emacs), but that way lies
> > madness: arbitrarily changing bidirectional properties of characters
> > will bite you elsewhere, because the corresponding tables are global.
>
> So that cannot be restricted just to LaTeX mayor modes?
No, the tables are global (they are quite large).
> In any case how could I change the backslash on a lisp level, ie change
>
> (get-char-code-property ?\\ 'bidi-class)
>
> >From ON to whatever is necessary.
You want put-char-code-property, I think. (Never tried this myself.)
> > The other 3 alternatives are indeed the available solutions.
> > Personally, I recommend the 1st one; I see no problem with typing
> > RTL text in a left-to-right paragraph (and vice versa), and don't
> > understand what unpleasant things you bump into when doing that.
> > TeX files are fundamentally left-to-right, as any program text, so
> > that would be my suggestion.
>
> Well I don't like the cursor movements in such a situation
Did you try setting visual-order-cursor-movement non-nil? Maybe
that's all you need to solve your problems?