From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: BIDI, LaTeX (auctex) and the =?utf-8?B?wqtldmlswrs=?= backslash Date: Sat, 21 May 2016 21:34:33 +0300 Message-ID: <83futb6z0m.fsf@gnu.org> References: <874m9r4it5.fsf@mat.ucm.es> <83iny771sf.fsf@gnu.org> <87y4732tmn.fsf@mat.ucm.es> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1463855694 5512 80.91.229.3 (21 May 2016 18:34:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 May 2016 18:34:54 +0000 (UTC) Cc: oub@mat.ucm.es, emacs-devel@gnu.org To: Uwe Brauer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 21 20:34:50 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b4Bjb-0001cu-JE for ged-emacs-devel@m.gmane.org; Sat, 21 May 2016 20:34:47 +0200 Original-Received: from localhost ([::1]:40949 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4Bja-000391-Kh for ged-emacs-devel@m.gmane.org; Sat, 21 May 2016 14:34:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4BjT-00038B-Np for emacs-devel@gnu.org; Sat, 21 May 2016 14:34:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b4BjP-0003OJ-He for emacs-devel@gnu.org; Sat, 21 May 2016 14:34:38 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4BjP-0003OE-EM; Sat, 21 May 2016 14:34:35 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1256 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b4BjM-0002yI-4X; Sat, 21 May 2016 14:34:33 -0400 In-reply-to: <87y4732tmn.fsf@mat.ucm.es> (message from Uwe Brauer on Sat, 21 May 2016 17:44:32 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:203931 Archived-At: > From: Uwe Brauer > Cc: Uwe Brauer , 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?