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-display-reordering is now non-nil by default Date: Fri, 19 Aug 2011 18:12:06 +0300 Message-ID: <83wre9qvuh.fsf@gnu.org> References: <4E48D309.6050503@acdlabs.ru> <83hb5jujjs.fsf@gnu.org> <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> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1313766830 11015 80.91.229.12 (19 Aug 2011 15:13:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 19 Aug 2011 15:13:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 19 17:13:46 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 1QuQlW-0001Mi-LE for ged-emacs-devel@m.gmane.org; Fri, 19 Aug 2011 17:13:46 +0200 Original-Received: from localhost ([::1]:43982 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuQlW-0003nd-1T for ged-emacs-devel@m.gmane.org; Fri, 19 Aug 2011 11:13:46 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuQlP-0003hZ-1a for emacs-devel@gnu.org; Fri, 19 Aug 2011 11:13:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QuQlK-00016N-CT for emacs-devel@gnu.org; Fri, 19 Aug 2011 11:13:39 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:49925) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuQlK-00016C-68 for emacs-devel@gnu.org; Fri, 19 Aug 2011 11:13:34 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LQ600100KP57Q00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Fri, 19 Aug 2011 18:12:04 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.124.178.145]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LQ6002NLKW2U60A@a-mtaout20.012.net.il>; Fri, 19 Aug 2011 18:12:04 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 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:143438 Archived-At: > From: Lars Magne Ingebrigtsen > Date: Fri, 19 Aug 2011 16:51:03 +0200 > > To me, a nice interface to create a bit of text (that may later be > chopped up before insertion) would be to have a function like > (bidi-make-separate-string "lala"). This could perhaps be implemented > like (propertize "lala" 'bidi-region (make-unique-identifier)). > > That is, what I'm saying is "make a string that will be treated > independently for bidi purposes". Is using the directional control characters and/or TABs permitted for the solution? If it is, there's more than one way to do what you want, I will show you the most bulletproof one as soon as you agree to see it ;-) If using directional controls is not allowed, or frowned upon, then we currently lack the infrastructure to do that, and as you see from this thread, exactly which feature would be best for doing this is still being debated. Btw, I'm not at all sure the API you suggest is the best one. One alternative would be to specify the entire line, with marker characters to show separate fields, and ask to modify this line such that fields will be displayed left to right (or right to left) in their order in the string. It's possible there are other alternatives as well.