Subject: Re: bug#18545: 24.4.50: Bug - forward-line inside with-selected-window

From: Eli Zaretskii <[email-masked]>
Date: Thu, 25 Sep 2014 16:55:26 +0300

> Date: Wed, 24 Sep 2014 17:50:43 +0200 (CEST)
> From: [email-masked]
> Cc: [email-masked]
> 
> I confirm the issue on Emacs 24.3.93 (build on 2014-08-15).
> 
> 
> > Message du 24/09/14 à 17h14
> > De : "Stefan Monnier" 
> > A : [email-masked]
> > Copie à : [email-masked]
> > Objet : Re: bug#18545: 24.4.50: Bug - forward-line inside with-selected-window
> > 
> > > The command `forward-line` fails (no error message) inside
> > > a `with-selected-window` statement with

If you add

  (message "%s" (point))

to the form inside with-selected-window, you will see that
forward-line does its job perfectly.  Also, the line number in the
mode line gets incremented, even if you don't make the above addition.
The problem is that the window showing the *Completions* buffer is not
scrolled to bring point into view.