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 19:39:14 +0300 Message-ID: <831uwx18i5.fsf@gnu.org> References: <83bow2wq9b.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1312735214 1224 80.91.229.12 (7 Aug 2011 16:40:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 7 Aug 2011 16:40:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 07 18:40:10 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 1Qq6OW-0002dI-FP for ged-emacs-devel@m.gmane.org; Sun, 07 Aug 2011 18:40:08 +0200 Original-Received: from localhost ([::1]:37117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qq6OV-0003QF-Vo for ged-emacs-devel@m.gmane.org; Sun, 07 Aug 2011 12:40:07 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qq6OT-0003P2-7l for emacs-devel@gnu.org; Sun, 07 Aug 2011 12:40:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qq6OS-0008LW-Ax for emacs-devel@gnu.org; Sun, 07 Aug 2011 12:40:05 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:39744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qq6OR-0008L8-Vy for emacs-devel@gnu.org; Sun, 07 Aug 2011 12:40:04 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LPK00300GUM4C00@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Sun, 07 Aug 2011 19:39:14 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.94.185]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LPK002JKGXDYY80@a-mtaout23.012.net.il>; Sun, 07 Aug 2011 19:39:14 +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.175 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:142963 Archived-At: > From: Stefan Monnier > Cc: emacs-devel@gnu.org > Date: Sun, 07 Aug 2011 12:13:10 -0400 > > > + if (EQ (glyphless_method, Qzero_width)) > > + { > > + SET_PT (PT > BEGV && PT < last_pt ? PT - 1 : PT + 1); > > + check_glyphless = 1; > > + check_composition = check_display = check_invisible = 1; > > + } > > This means that point is placed either after the LRM or before the char > preceding the LRM, depending only on the direction of the movement of > the last command. I.e. the LRM gets "fused" with the preceding char. > > 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.