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: Wed, 05 Mar 2014 15:03:34 +0100 Message-ID: <53172EB6.4010902@gmx.at> References: <5310D459.8040504@gmx.at> <6F4BAAB3-A0AD-4AE5-BD18-BE9CE1A97B77@gmail.com> <5311CA73.2030709@gmx.at> <53123279.6070203@gmx.at> <5316D1BC.3000804@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 1394028254 23797 80.91.229.3 (5 Mar 2014 14:04:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Mar 2014 14:04:14 +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 Wed Mar 05 15:04:22 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 1WLCQm-0006oj-Rw for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Mar 2014 15:04:20 +0100 Original-Received: from localhost ([::1]:52415 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLCQm-0007Gd-G3 for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Mar 2014 09:04:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51131) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLCQc-0007Fc-DN for bug-gnu-emacs@gnu.org; Wed, 05 Mar 2014 09:04:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLCQV-0005b5-3U for bug-gnu-emacs@gnu.org; Wed, 05 Mar 2014 09:04:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50003) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLCQU-0005b1-WD for bug-gnu-emacs@gnu.org; Wed, 05 Mar 2014 09:04:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WLCQU-0007J4-GH for bug-gnu-emacs@gnu.org; Wed, 05 Mar 2014 09:04: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: Wed, 05 Mar 2014 14:04:02 +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.139402822828063 (code B ref 16909); Wed, 05 Mar 2014 14:04:02 +0000 Original-Received: (at 16909) by debbugs.gnu.org; 5 Mar 2014 14:03:48 +0000 Original-Received: from localhost ([127.0.0.1]:51185 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WLCQF-0007IY-UX for submit@debbugs.gnu.org; Wed, 05 Mar 2014 09:03:48 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:56530) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WLCQC-0007IF-PK for 16909@debbugs.gnu.org; Wed, 05 Mar 2014 09:03:46 -0500 Original-Received: from [178.190.22.148] ([178.190.22.148]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0M2tKM-1XAXt220ms-00siVI; Wed, 05 Mar 2014 15:03:42 +0100 In-Reply-To: X-Provags-ID: V03:K0:sDAEDZ0hGN4SkqbBub/vxBFWp+lyGudzQv/xdCIUJKv1MI5i4OZ unZw7qGB4mSPTuC5VKTl3ehMi6FX5KQHggiAjcFhoflH2vy7pozaRT6Rc+WJTrvOPe/1qMK Zb7c1ZXR4WiQa+PfGhJdFba5jCDTo31GBwLj6ExWj4sXRihJFVkD0RUF9BreTPVxA3dSvCp DjNoq1SMi2pBUvG/DKrWQ== 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:86573 Archived-At: > If the 'other-window-scroll-buffer' is pointing to a dead buffer > 'scroll-other-window' > does not fallback to its normal behaviour. You get an 'invalid buffer' > message. Hopefully not any more. Did you try the latest trunk? > So we don't have to kill the *Completions* buffer. We need to set the > variable back > to nil to resume normal user operations after using auto complete scrolling. We can now kill the *Completions* buffer as well. We only have to be sure what's easier - keeping track of `other-window-scroll-buffer' and resetting it or killing the buffer. Somewhere there should be a `quit-restore-window' call around, responsible for accomplishing part of that task already. > My investigation was to figure out what is going on, not precisely where to > fix it and was > based on semantic's autocomplete which behaves exactly the same. I just > thought > that reporting this in base emacs functionality might get a higher chance > to get > attention. And the mechanism and a cause seems to be exactly the same. > I didn't manage to pinpoint where it happens in case of elisp auto complete. > Only for semantic displayor one (which needs fixing as well). Then try fixing that. At the time of displaying the *Completions* buffer set `other-window-scroll-buffer' to the *Completions* buffer. At the time of removing that window (I hope it gets removed) reset `other-window-scroll-buffer' to nil or kill the *Completions* buffer. Writing this should be simple once you know where to apply the changes. The more important task is to give it some testing. martin