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

From: [email-masked]
Date: Thu, 25 Sep 2014 22:05:36 +0200 (CEST)

here's a related scrolling involving the lisp function recenter:

1. emacs -Q
2. define those binding:

(global-set-key (kbd "C-`") '(lambda ()
(interactive)
(with-selected-window (get-buffer-window "*Completions*")
(forward-line 1))))

(global-set-key (kbd "C-~") '(lambda ()
(interactive)
(with-selected-window (get-buffer-window "*Completions*")
(forward-line -1))))

(global-set-key (kbd "C-;") '(lambda ()
(interactive)
(with-selected-window (get-buffer-window "*Completions*")
(recenter 5))))

3. do:

C-x C-f -> in a directory with lots of file.
tab tab -> open completion buffer
C-` -> to until scrolling down the *completion* buffer

hit "C-;" -> nothing happens. it should recenter. 
hit "C-'`" -> it recenter then move one line down

Regards

> Message du 25/09/14 à 21h18
> De : "Eli Zaretskii" 
> A : [email-masked]
> Copie à : [email-masked]
> Objet : Re: bug#18545: 24.4.50: Bug - forward-line inside with-selected-window
> 
> > Date: Thu, 25 Sep 2014 21:06:00 +0200 (CEST)
> > From: [email-masked]
> > Cc: [email-masked]
> > 
> > I will have to take some time to do some more research provide you with a reproducible minimal example.
> 
> Thanks in advance. Having a minimal reproducer means we are half-way
> to a solution.
> 

___________________________________________________________
Mode, hifi, maison,… J'achète malin. Je compare les prix avec Voila.fr http://shopping.voila.fr/