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: Adjust point to move it off zero-width characters Date: Sun, 07 Aug 2011 20:10:11 +0300 Message-ID: <83y5z5ywp8.fsf@gnu.org> References: <83bow2wq9b.fsf@gnu.org> <831uwx18i5.fsf@gnu.org> <83zkjlyxsd.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1312737023 10729 80.91.229.12 (7 Aug 2011 17:10:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 7 Aug 2011 17:10:23 +0000 (UTC) Cc: emacs-devel@gnu.org To: monnier@iro.umontreal.ca Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 07 19:10:19 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 1Qq6rh-0003pO-RD for ged-emacs-devel@m.gmane.org; Sun, 07 Aug 2011 19:10:17 +0200 Original-Received: from localhost ([::1]:46004 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qq6rg-0000Lx-QX for ged-emacs-devel@m.gmane.org; Sun, 07 Aug 2011 13:10:16 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:49994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qq6re-0000Lh-7h for emacs-devel@gnu.org; Sun, 07 Aug 2011 13:10:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qq6rd-000518-8f for emacs-devel@gnu.org; Sun, 07 Aug 2011 13:10:14 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:58362) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qq6rc-000514-W6 for emacs-devel@gnu.org; Sun, 07 Aug 2011 13:10:13 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LPK00700I30PY00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Sun, 07 Aug 2011 20:10:11 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.94.185]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LPK006UVICYQGN0@a-mtaout20.012.net.il>; Sun, 07 Aug 2011 20:10:11 +0300 (IDT) In-reply-to: <83zkjlyxsd.fsf@gnu.org> 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:142965 Archived-At: > Date: Sun, 07 Aug 2011 19:46:42 +0300 > From: Eli Zaretskii > Cc: emacs-devel@gnu.org > > > > Is there a reason to fuse it with the preceding char rather than fusing > > > it with the next char? > > > > I think you are right. I will rework the patch to do that. > > Actually, there could be a problem here: "C-x =" will tell point is on > an LRM, which will confuse users, because they see the cursor on the > following character. There's one other complication: to _really_ DTRT, there's one directional control that needs to be fused with the preceding character: the PDF, u+202c (POP DIRECTIONAL FORMATTING). That's because copy/paste of a portion of text enclosed in, say, LRO...PDF should keep the visual appearance of that portion of text, and for that you need to copy it with LRO before and PDF after. But hard-coding the special treatment of PDF on the C level sounds too kludgey, no?