emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adjust point to move it off zero-width characters


From: Eli Zaretskii
Subject: Re: Adjust point to move it off zero-width characters
Date: Sun, 07 Aug 2011 19:46:42 +0300

> Date: Sun, 07 Aug 2011 19:39:14 +0300
> From: Eli Zaretskii <address@hidden>
> Cc: address@hidden
> 
> > From: Stefan Monnier <address@hidden>
> > Cc: address@hidden
> > 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.

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.

Do we need to change "C-x =" as well?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]