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 (was: bidi-display-reordering is now non-nil by default) Date: Thu, 25 Aug 2011 16:51:54 +0300 Organization: Mivtach-Simon Insurance agencies Message-ID: <201108251351.p7PDpsa7021517@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> 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 1314287677 18284 80.91.229.12 (25 Aug 2011 15:54:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 25 Aug 2011 15:54:37 +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 17:54:32 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 1QwcGC-0005H6-Tl for ged-emacs-devel@m.gmane.org; Thu, 25 Aug 2011 17:54:29 +0200 Original-Received: from localhost ([::1]:51126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwcGC-0007ko-G5 for ged-emacs-devel@m.gmane.org; Thu, 25 Aug 2011 11:54:28 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42453) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwcG9-0007ju-9s for emacs-devel@gnu.org; Thu, 25 Aug 2011 11:54:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwcG2-0002Cl-U0 for emacs-devel@gnu.org; Thu, 25 Aug 2011 11:54:20 -0400 Original-Received: from [193.16.147.12] (port=51236 helo=unix.mvs.co.il) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwcFW-00020k-Fa; Thu, 25 Aug 2011 11:53:48 -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 p7PDpvSV011074; Thu, 25 Aug 2011 16:51:58 +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 p7PDpvX7021521; Thu, 25 Aug 2011 16:51:57 +0300 Original-Received: (from root@localhost) by beta.mvs.co.il (8.14.1/8.14.1/Submit) id p7PDpsa7021517; Thu, 25 Aug 2011 16:51:54 +0300 In-reply-to: <83wre84amu.fsf@gnu.org> (message from Eli Zaretskii on Sat, 20 Aug 2011 13:53:29 +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:143580 Archived-At: On Sat, 20 Aug 2011 13:53:29 Eli Zaretskii wrote: > > In general, having something like this on display: > > printf ("FEDCBA %d PONMLK %f ZYX %lu\n", foo, bar, baz); > > for a source that in logical order reads > > printf ("ABCDEF %d KLMNOP %f XYZ %lu\n", foo, bar, baz); > > which is what you suggest, is only marginally better than the original > logical-order string, because the reading order is ambiguous at best, > and downright undecipherable in more complex situations, where the > format string includes punctuation and L2R text. So if we think the > above is acceptable, we might as well consider not reordering this at > all. I agree. The default setting of bidi reordering for this kind of buffer should be nil. I think a (global) function that toggles the bidi reordering ONLY for the local buffer should ease the work of Emacs users. 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