Subject: Re: bug#20100: 24.4.91; Can't scroll a window while in minibuffer

From: martin rudalics <[email-masked]>
Date: Fri, 13 Mar 2015 19:16:54 +0100

> You need to be in the minibuffer in order for the effect to occur,
 > which you're not.

I know but you didn't give a recipe.

 >> The fact that you apparently have to
 >>
 >> (setf (window-point wnd) (point))
 >>
 >> seems to suport my claim above, namely that `wnd' is not selected at
 >> that time.
 >
 > It is selected, only the minibufer is interfering.

It apparently is _not_ selected (at least not in your snippet).  With
emacs -Q evaluate the following code:

(let ((buffer (get-buffer-create "*buffer*"))
       (window (selected-window))
       (line 0))
   (set-window-buffer nil buffer)
   (with-current-buffer buffer
     (while (< line 100)
       (insert (format "%02d\n" line))
       (setq line (1+ line))))

   (with-selected-window (minibuffer-window)
     (with-selected-window window
       (goto-char (point-min))
       (forward-line 25)
       (recenter))
     (insert "This is your minibuffer window!")
     (sit-for 5)))

Can you see the difference?

martin