unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Uwe Brauer <oub@mat.ucm.es>
Cc: oub@mat.ucm.es, emacs-devel@gnu.org
Subject: Re: BIDI, LaTeX (auctex) and the «evil» backslash
Date: Sat, 21 May 2016 21:34:33 +0300	[thread overview]
Message-ID: <83futb6z0m.fsf@gnu.org> (raw)
In-Reply-To: <87y4732tmn.fsf@mat.ucm.es> (message from Uwe Brauer on Sat, 21 May 2016 17:44:32 +0000)

> From: Uwe Brauer <oub@mat.ucm.es>
> Cc: Uwe Brauer <oub@mat.ucm.es>, emacs-devel@gnu.org
> 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?



  reply	other threads:[~2016-05-21 18:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-21 13:55 BIDI, LaTeX (auctex) and the «evil» backslash Uwe Brauer
2016-05-21 17:34 ` Eli Zaretskii
2016-05-21 17:37   ` Eli Zaretskii
2016-05-21 17:44   ` Uwe Brauer
2016-05-21 18:34     ` Eli Zaretskii [this message]
2016-05-21 20:20       ` Uwe Brauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83futb6z0m.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=oub@mat.ucm.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).