From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleh Krehel Newsgroups: gmane.emacs.bugs Subject: bug#20100: 24.4.91; Can't scroll a window while in minibuffer Date: Fri, 13 Mar 2015 19:41:38 +0100 Message-ID: References: <87h9tp6ox3.fsf@gmail.com> <5503171C.4070704@gmx.at> <55032996.3080008@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1426272342 10834 80.91.229.3 (13 Mar 2015 18:45:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Mar 2015 18:45:42 +0000 (UTC) Cc: 20100@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 13 19:45:35 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YWUaV-0003tD-EA for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Mar 2015 19:45:35 +0100 Original-Received: from localhost ([::1]:38143 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWUaU-0000rX-U3 for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Mar 2015 14:45:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWUXD-00047x-G7 for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2015 14:42:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YWUX5-0003iH-SR for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2015 14:42:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWUX5-0003iD-OU for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2015 14:42:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YWUX4-0000z5-2r for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2015 14:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Oleh Krehel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Mar 2015 18:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20100 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20100-submit@debbugs.gnu.org id=B20100.14262721083748 (code B ref 20100); Fri, 13 Mar 2015 18:42:02 +0000 Original-Received: (at 20100) by debbugs.gnu.org; 13 Mar 2015 18:41:48 +0000 Original-Received: from localhost ([127.0.0.1]:45433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YWUWp-0000yO-AN for submit@debbugs.gnu.org; Fri, 13 Mar 2015 14:41:47 -0400 Original-Received: from mail-wi0-f173.google.com ([209.85.212.173]:46445) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YWUWm-0000y2-G7 for 20100@debbugs.gnu.org; Fri, 13 Mar 2015 14:41:45 -0400 Original-Received: by wiwh11 with SMTP id h11so8231098wiw.5 for <20100@debbugs.gnu.org>; Fri, 13 Mar 2015 11:41:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Lf2s43ypMXnM6OqO0QM0paboZSISSqnnWtzxckTiM50=; b=DzR3ambfqyiU+DfQiR7tLapfPLpY5nhgeYwEKt8/qJ/2T3mlzv860VbeeXEWMy9QVC BUoy9PdKvAHok053861vsN1eYjyuRKkNLEJqxn02MmmVGqhUq1Ts9k2q7J2Oc9q23xPh zJbSc2x+M8sbJ7QHo7KgJW5JCsZUIuhdJA4SzPUbOiMt0i14jlvwrIFhaGCyBf6xDGc2 YxyWEYn5V+WMFlraxNRns6xMoB8Ew4u/d5uiGd1B93XUgMFU7Fah7MqiN5FC9/L2QjXH 5cyjcDHsmuX2lEjAATIEB30+Tu4WNu3aOGpQyVpyEaYJl7mm+DmB/SVcuWZKLGpvdykz KukQ== X-Received: by 10.180.77.19 with SMTP id o19mr77495501wiw.90.1426272098812; Fri, 13 Mar 2015 11:41:38 -0700 (PDT) Original-Received: by 10.27.215.194 with HTTP; Fri, 13 Mar 2015 11:41:38 -0700 (PDT) In-Reply-To: <55032996.3080008@gmx.at> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:100455 Archived-At: > 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? Thanks, using `with-selected-window' instead of `with-current-buffer' solved it. I thought that they should be equivalent. Apparently they are not. So the problem is solved, thanks again. Oleh