From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#16909: 24.3; scrolling *Completions* window with tab sometimes chooses a wrong window Date: Sat, 01 Mar 2014 20:18:17 +0100 Message-ID: <53123279.6070203@gmx.at> References: <5310D459.8040504@gmx.at> <6F4BAAB3-A0AD-4AE5-BD18-BE9CE1A97B77@gmail.com> <5311CA73.2030709@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1393701652 13492 80.91.229.3 (1 Mar 2014 19:20:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Mar 2014 19:20:52 +0000 (UTC) Cc: "16909@debbugs.gnu.org" <16909@debbugs.gnu.org> To: Lukasz Pawelczyk Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 01 20:20:57 2014 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 1WJpSu-0006LA-UU for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Mar 2014 20:20:53 +0100 Original-Received: from localhost ([::1]:60644 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJpSu-0002wq-Dq for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Mar 2014 14:20:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJpRG-0001M8-Ry for bug-gnu-emacs@gnu.org; Sat, 01 Mar 2014 14:19:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WJpR8-0008Ty-GW for bug-gnu-emacs@gnu.org; Sat, 01 Mar 2014 14:19:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45789) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJpR8-0008Tu-Cf for bug-gnu-emacs@gnu.org; Sat, 01 Mar 2014 14:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WJpR7-0002Yc-Ve for bug-gnu-emacs@gnu.org; Sat, 01 Mar 2014 14:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Mar 2014 19:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16909 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16909-submit@debbugs.gnu.org id=B16909.13937015059769 (code B ref 16909); Sat, 01 Mar 2014 19:19:01 +0000 Original-Received: (at 16909) by debbugs.gnu.org; 1 Mar 2014 19:18:25 +0000 Original-Received: from localhost ([127.0.0.1]:46968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJpQX-0002XV-8a for submit@debbugs.gnu.org; Sat, 01 Mar 2014 14:18:25 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:59565) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJpQU-0002XL-By for 16909@debbugs.gnu.org; Sat, 01 Mar 2014 14:18:23 -0500 Original-Received: from [62.47.58.15] ([62.47.58.15]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MLzXM-1WIixM1nci-007meo; Sat, 01 Mar 2014 20:18:20 +0100 In-Reply-To: X-Provags-ID: V03:K0:xhMupV+p5bLq6yJpmGRmI+B6w1lHvaaoIvZoKJEEBVuTmFLZbs+ B989Gb4RI98LoR7quoDoI/pDS/YC76+YgdpsQZqTTcpRiObG6h0n6cmuMbOP8/d3PCzZkzO HSjh5+MakBJR/HgIjoCSpgnEy3vG7syhSmJ/ly5LWTaNY76y3TKs4OuUXtM/kUFa4IFOKZ/ 0Yo3Vd+1X9+MUPcG6oEmw== 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:86455 Archived-At: >> (1) Kill the *Completions* buffer when we're done so it won't be >> inadvertently displayed by `other-window-for-scrolling'. > > > How is this supposed to work? > The problem is _during_ the Completions buffer is shown, when we're hitting > Tab, not when we're done. Besides its window is usually closed > automatically. We have to detect the moment when the window is closed automatically anyway. At that time we can either kill the buffer or reset `other-window-scroll-buffer'. > Killing the buffer won't make the scroll-other-window work > the usuall way. How comes? Ahh... I see. If `other-window-scroll-buffer' is non-nil and the buffer was killed in the meantime `display-buffer' throws an arg out of range error. That's silly ... should be fixed now. >> (2) Bind `other-window-scroll-buffer' temporarily only as long as the >> *Completions* buffer is shown. > > > This would work I imagine. But don't do this in general when the > Completions buffer is shown, but only when we use autocomplete > functionality with Tab _and_ the buffer is shown. Could you try doing that? I have no idea where to start. martin