From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lukasz Pawelczyk Newsgroups: gmane.emacs.bugs Subject: bug#16909: 24.3; scrolling *Completions* window with tab sometimes chooses a wrong window Date: Sat, 1 Mar 2014 13:11:24 +0100 Message-ID: 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: multipart/alternative; boundary=089e011825f80379ed04f38a7465 X-Trace: ger.gmane.org 1393675929 10928 80.91.229.3 (1 Mar 2014 12:12:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Mar 2014 12:12:09 +0000 (UTC) Cc: "16909@debbugs.gnu.org" <16909@debbugs.gnu.org> To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 01 13:12:16 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 1WJim7-0005vi-T1 for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Mar 2014 13:12:16 +0100 Original-Received: from localhost ([::1]:59382 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJim7-0002pt-Do for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Mar 2014 07:12:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJilz-0002pa-5G for bug-gnu-emacs@gnu.org; Sat, 01 Mar 2014 07:12:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WJilu-0004Qt-BK for bug-gnu-emacs@gnu.org; Sat, 01 Mar 2014 07:12:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJilu-0004Qn-3a for bug-gnu-emacs@gnu.org; Sat, 01 Mar 2014 07:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WJilt-0006R3-J7 for bug-gnu-emacs@gnu.org; Sat, 01 Mar 2014 07:12:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lukasz Pawelczyk Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Mar 2014 12:12: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.139367588824687 (code B ref 16909); Sat, 01 Mar 2014 12:12:01 +0000 Original-Received: (at 16909) by debbugs.gnu.org; 1 Mar 2014 12:11:28 +0000 Original-Received: from localhost ([127.0.0.1]:45410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJilL-0006Q6-LP for submit@debbugs.gnu.org; Sat, 01 Mar 2014 07:11:28 -0500 Original-Received: from mail-ob0-f180.google.com ([209.85.214.180]:53301) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJilJ-0006Pw-2W for 16909@debbugs.gnu.org; Sat, 01 Mar 2014 07:11:26 -0500 Original-Received: by mail-ob0-f180.google.com with SMTP id vb8so4954131obc.25 for <16909@debbugs.gnu.org>; Sat, 01 Mar 2014 04:11:24 -0800 (PST) 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=fcdp8kquk8S1Yy+dLI3X75bom5HzgyTilx8MfdnysFw=; b=RrV5AQeeGW+qmOK3Df0i5TiMrpjO6qzlcDCkqLhzvqkmMzEaoOY19TyVW+3RbwcL3G rTDrulne4nC6LC4bW1FzhNaVwBjyZTz4tyKvkpNYtESoVQ3VGZa3apaBMQ245XSJmkFJ s/Ef86IHWTxBm44rvV5i6TD0B22UNTr+4L4n09HnHtBDHCuN09z8wyfgFPF54DBtl3EH +l7UmQ8hAz71Y6VnlhOewr0+ux0xmL8Kuyg/DrDpsuh/aD7sUHxrmyBaIRYfsS67bT2w o/pUcne/beqpV+PJYK3m/wIesX/seB7g+yy03Qz5m6P2A1ml3JHEHt1slOvp8Z5ZRlvf QWbA== X-Received: by 10.60.174.77 with SMTP id bq13mr7983042oec.0.1393675884262; Sat, 01 Mar 2014 04:11:24 -0800 (PST) Original-Received: by 10.76.3.180 with HTTP; Sat, 1 Mar 2014 04:11:24 -0800 (PST) In-Reply-To: <5311CA73.2030709@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:86440 Archived-At: --089e011825f80379ed04f38a7465 Content-Type: text/plain; charset=UTF-8 On Saturday, March 1, 2014, martin rudalics wrote: > > I just posted this setq line as a workaround. And why does it break? > Because if you set it then C-M-v will always try to scroll *Completions* > and not regular other-window buffer which is useful sometimes (e.g. while > using help, an approach mentioned even in tutorial). > > So it seems there are two ways to tackle this problem: > > (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. Killing the buffer won't make the scroll-other-window work the usuall way. > (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. > > martin > -- Regards Havner --089e011825f80379ed04f38a7465 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Saturday, March 1, 2014, martin rudalics <rudalics@gmx.at> wrote:
&g= t; I just posted this setq line as a workaround. And why does it break? Bec= ause if you set it then C-M-v will always try to scroll *Completions* and n= ot regular other-window buffer which is useful sometimes (e.g. while using = help, an approach mentioned even in tutorial).

So it seems there are two ways to tackle this problem:

(1) Kill the *Completions* buffer when we're done so it won't be =C2=A0 =C2=A0 inadvertently displayed by `other-window-for-scrolling'.<= /blockquote>

How is this supposed to work?
The= problem is _during_=C2=A0the Completions buffer is shown, when we're= =C2=A0hitting Tab,=C2=A0not when we're done.=C2=A0Besides its window is= usually closed automatically. Killing the buffer won't make the scroll= -other-window work the usuall way.
=C2=A0
(2) Bind `other-window-scroll-buffer' temporarily only as long as the =C2=A0 =C2=A0 *Completions* buffer is shown.

This would work I imagine. But don't do this=C2=A0in general when the= Completions buffer is shown, but only when we use autocomplete functionali= ty with Tab _and_ the buffer is shown.
=C2=A0

martin


--
Regards
Havner

--089e011825f80379ed04f38a7465--