From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel,gmane.emacs.bidi Subject: Re: [emacs-bidi] Re: improving bidi documents display Date: Thu, 03 Mar 2011 05:40:13 -0500 Message-ID: References: <837hcpryxr.fsf@gnu.org> <87wrklpzii.fsf@maru.md5i.com> <83aahhnpr3.fsf@gnu.org> <4D6DA6E6.70509@it.aoyama.ac.jp> <87zkpe9rfp.fsf@catnip.gol.com> <83k4gixj6m.fsf@gnu.org> <83aahdxt74.fsf@gnu.org> <87ipw19ef2.fsf@catnip.gol.com> <83wrkgx2wz.fsf@gnu.org> <4D6F30FA.6020807@it.aoyama.ac.jp> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1299148945 20942 80.91.229.12 (3 Mar 2011 10:42:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Mar 2011 10:42:25 +0000 (UTC) Cc: eli.osherovich@gmail.com, md5i@md5i.com, emacs-devel@gnu.org, emacs-bidi@gnu.org, miles@gnu.org To: "Martin J. Dürst" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 03 11:42:20 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pv5z9-0002mO-WA for ged-emacs-devel@m.gmane.org; Thu, 03 Mar 2011 11:42:20 +0100 Original-Received: from localhost ([127.0.0.1]:47015 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pv5xc-0002Qi-7z for ged-emacs-devel@m.gmane.org; Thu, 03 Mar 2011 05:40:44 -0500 Original-Received: from [140.186.70.92] (port=51574 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pv5xP-0002MG-9N for emacs-devel@gnu.org; Thu, 03 Mar 2011 05:40:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pv5xK-0003H2-2D for emacs-devel@gnu.org; Thu, 03 Mar 2011 05:40:31 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:38234) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pv5x9-0003Di-Dv; Thu, 03 Mar 2011 05:40:15 -0500 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Pv5x7-000267-7R; Thu, 03 Mar 2011 05:40:13 -0500 In-reply-to: <4D6F30FA.6020807@it.aoyama.ac.jp> (message from "Martin J. Dürst" on Thu, 03 Mar 2011 15:11:06 +0900) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:136739 gmane.emacs.bidi:860 Archived-At: > Date: Thu, 03 Mar 2011 15:11:06 +0900 > From: "Martin J. Dürst" > CC: Miles Bader , eli.osherovich@gmail.com, md5i@md5i.com, > emacs-bidi@gnu.org, emacs-devel@gnu.org > > >> But isn't the "changed order" natural for the characters it's attached > >> to? > > > > Only in the context of the kind of text (e.g., TeX) it was copied > > from. > > The copying may work if the feature is switched on for all buffers. What feature is that? > The > reason for this is that things have to be reevaluated/fixed anyway every > time some buffer changes (e.g. insertion or deletion of a character) > happens. So if the text is copied to a buffer that doesn't do any > explicit reordering on top of the bidi algorithm, the special > overlays/properties/whatever will just be purged out. This is probably a misunderstanding, prompted by the fact that we are discussing an imaginary feature. I was talking about a special text property which tells the display engine to reorder the characters covered by the property. By default, text properties are yanked together with the text. And since yanking text (as any other insertion) triggers redisplay, the display engine _will_ notice this special property and _will_ reorder the text it covers. As for a buffer that "doesn't do any explicit reordering", I'm not sure what you mean. The current plans are to turn on the bidi reordering in all buffers by default. Whether this constitutes "explicit reordering", I'm not sure, so I don't understand what you mean, and I also don't see how is that relevant to the effect of copying the text properties. If you suggest that this specific property should be stripped off by yanking, i.e. to add them to yank-excluded-properties, then it's possible, but not necessarily DWIM-ish, because yanking in the same buffer would need to leave these properties intact.