[Top][All Lists]
[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:39:14 +0300 |
> 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.