From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Adjust point to move it off zero-width characters Date: Mon, 08 Aug 2011 00:12:54 -0400 Message-ID: References: <83bow2wq9b.fsf@gnu.org> <831uwx18i5.fsf@gnu.org> <83pqkgzjtr.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1312776785 16381 80.91.229.12 (8 Aug 2011 04:13:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2011 04:13:05 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 08 06:13:02 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 1QqHD2-0007RR-1K for ged-emacs-devel@m.gmane.org; Mon, 08 Aug 2011 06:13:00 +0200 Original-Received: from localhost ([::1]:59825 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqHD1-0002vK-Gr for ged-emacs-devel@m.gmane.org; Mon, 08 Aug 2011 00:12:59 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqHCz-0002v0-9E for emacs-devel@gnu.org; Mon, 08 Aug 2011 00:12:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqHCy-0002DC-AW for emacs-devel@gnu.org; Mon, 08 Aug 2011 00:12:57 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:15661 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqHCx-0002Cs-4G; Mon, 08 Aug 2011 00:12:55 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAK9hP05FxKeo/2dsb2JhbABCpzV4gUABAQQBViMQCzQSFBgNJIgAumeGRgSfVYQx X-IronPort-AV: E=Sophos;i="4.67,335,1309752000"; d="scan'208";a="129694113" Original-Received: from 69-196-167-168.dsl.teksavvy.com (HELO ceviche.home) ([69.196.167.168]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 08 Aug 2011 00:12:54 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 4B63066386; Mon, 8 Aug 2011 00:12:54 -0400 (EDT) In-Reply-To: <83pqkgzjtr.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 08 Aug 2011 06:02:56 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:142992 Archived-At: >> That was my impression as well: the fusing should not always be done >> in the same direction. I'd still like to hear your reasoning about >> why it only depends on the particular zero-width char and not on the >> surrounding context. > I explained that, for the directional control characters: the need to > be able to interactively copy/paste text and be sure it displays the > same. The directional controls affect the _following_ characters. If > we "fuse" LRM/RLM/LRO/RLO/LRE/RLE with the previous character, they > can only be copy/pasted with the text that precedes them, where they > have no effect whatsoever. That's why PDF is different: it affects > the characters that precede it. Ah, so they're kind of like combining characters. Good. In that case I think hardcoding PDF in the code is perfectly acceptable, with a commend explaining what's going on. Stefan