Subject: Re: bug#5816: Cursor moves to end of completions in icomplete-mode

From: Eli Zaretskii <[email-masked]>
Date: Thu, 01 Apr 2010 10:29:52 +0300

> From: Juanma Barranquero <[email-masked]>
> Date: Thu, 1 Apr 2010 04:44:22 +0200
> Cc: 
> 
> Doing
> 
>    emacs -Q -f icomplete-mode
>    C-h v xa
> 
> - with the emacs-23 branch:
> 
>   Describe variable: xa<(>rgs-program)  [Matched]
> 
> - with the trunk:
> 
>   Describe variable: xa(rgs-program)  [Matched]<>
> 
> 
> where <> marks the cursor position. Bisection seems to indicate the
> bug appears in revid:[email-masked]
> (Initial support for bidirectional editing).

Yes, that figures.  The function that positions the cursor is the only
one that was completely rewritten for the bidi support, because the
original code was designed around the assumption that display is
unidirectional.  All the other bidi changes are additions to the
existing code, and are not get executed except for buffers where the
bidi display option was turned on.

Thanks for the report and the test case, I will look into this ASAP.