From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ehud Karni" Newsgroups: gmane.emacs.devel Subject: Re: bidi reordering in program source buffers Date: Thu, 25 Aug 2011 23:01:38 +0300 Organization: Mivtach-Simon Insurance agencies Message-ID: <201108252001.p7PK1cdL017264@beta.mvs.co.il> References: <4E48D309.6050503@acdlabs.ru> <874o1j10zv.fsf@fencepost.gnu.org> <8362lyvcli.fsf@gnu.org> <87fwl2r0l4.fsf@stupidchicken.com> <83zkjatnkz.fsf@gnu.org> <877h6et8oi.fsf@stupidchicken.com> <83vctxua2y.fsf@gnu.org> <87r54le4rd.fsf@stupidchicken.com> <8362lxtfeb.fsf@gnu.org> <87d3g56llz.fsf@stupidchicken.com> <8339h0tur0.fsf@gnu.org> <87ippvwtwx.fsf@stupidchicken.com> <83liurruz4.fsf@gnu.org> <87k4aaej7f.fsf@stupidchicken.com> <83ippusjej.fsf@gnu.org> <87vctuz6eb.fsf@stupidchicken.com> <837h69sw0h.fsf@gnu.org> <87liuptbmp.fsf@stupidchicken.com> <83obzkqz2z.fsf@gnu.org> <83wre84amu.fsf@gnu.org> <201108251351.p7PDpsa7021517@beta.mvs.co.il> <8339gph03l.fsf@gnu.org> Reply-To: ehud@unix.mvs.co.il NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1314302515 23008 80.91.229.12 (25 Aug 2011 20:01:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 25 Aug 2011 20:01:55 +0000 (UTC) Cc: cyd@stupidchicken.com, schwab@linux-m68k.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: eliz@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 25 22:01:50 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qwg7a-0008Ec-07 for ged-emacs-devel@m.gmane.org; Thu, 25 Aug 2011 22:01:50 +0200 Original-Received: from localhost ([::1]:55000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwg7Z-0000wX-HR for ged-emacs-devel@m.gmane.org; Thu, 25 Aug 2011 16:01:49 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwg7W-0000wS-3i for emacs-devel@gnu.org; Thu, 25 Aug 2011 16:01:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qwg7V-0003Oe-1p for emacs-devel@gnu.org; Thu, 25 Aug 2011 16:01:46 -0400 Original-Received: from [193.16.147.12] (port=35253 helo=unix.mvs.co.il) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwg7U-0003L1-Fe; Thu, 25 Aug 2011 16:01:45 -0400 Original-Received: from beta.mvs.co.il (beta [10.253.0.3]) by unix.mvs.co.il (8.13.8/8.13.7) with ESMTP id p7PK1dgw000518; Thu, 25 Aug 2011 23:01:40 +0300 Original-Received: from beta.mvs.co.il (localhost [127.0.0.1]) by beta.mvs.co.il (8.14.1/8.14.1) with ESMTP id p7PK1dCl017269; Thu, 25 Aug 2011 23:01:39 +0300 Original-Received: (from root@localhost) by beta.mvs.co.il (8.14.1/8.14.1/Submit) id p7PK1cdL017264; Thu, 25 Aug 2011 23:01:38 +0300 In-reply-to: <8339gph03l.fsf@gnu.org> (message from Eli Zaretskii on Thu, 25 Aug 2011 20:28:30 +0300) X-Mailer: Emacs 21.3.1 rmail (send-msg 1.109) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 2) X-Received-From: 193.16.147.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:143583 Archived-At: On Thu, 25 Aug 2011 20:28:30 Eli Zaretskii wrote: > > So in your opinion, buffers that display source code should not be > reordered, not even the strings and comments they display? IOW, we > should give up showing human-readable portions of those buffers in a > legible display form? That's a bit harsh, no? Yes, not even in comments or strings, see more below. > > I think a (global) function that toggles the bidi reordering > > ONLY for the local buffer should ease the work of Emacs users. > > Can you elaborate why this is needed? > > In any case, the function should simply toggle the value of > bidi-display-reordering, as it's per-buffer variable. But I rather > think Emacs should set this variable correctly without user > intervention. I meant a command like `toggle-truncate-lines' or `toggle-word-wrap'. Then the user can assign it to a key, so she can easily change from logical to bidi ordered. In this way she can easily edit the R2L text when she needs, but with one keystroke see the logic of the program even if the R2L text is harder to read. On second thought, may be the command should change the input method too ? Ehud. -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D Better Safe Than Sorry