GNU bug report logs - #26513
25.2; pop-up-frames and *Completions* buffer

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: charles@HIDDEN (Charles A. Roelli); dated Sat, 15 Apr 2017 09:18:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 26513 <at> debbugs.gnu.org:


Received: (at 26513) by debbugs.gnu.org; 15 Apr 2017 16:49:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 15 12:49:51 2017
Received: from localhost ([127.0.0.1]:49192 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1czQtT-00057k-EF
	for submit <at> debbugs.gnu.org; Sat, 15 Apr 2017 12:49:51 -0400
Received: from userp1040.oracle.com ([156.151.31.81]:39401)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1czQtR-00057W-Ne
 for 26513 <at> debbugs.gnu.org; Sat, 15 Apr 2017 12:49:50 -0400
Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74])
 by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id
 v3FGnX9F004850
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Sat, 15 Apr 2017 16:49:34 GMT
Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235])
 by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v3FGnWVX006455
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
 Sat, 15 Apr 2017 16:49:33 GMT
Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23])
 by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id v3FGnS1F010908;
 Sat, 15 Apr 2017 16:49:30 GMT
MIME-Version: 1.0
Message-ID: <7e856815-6dff-4152-b144-c45a4bedb0b4@default>
Date: Sat, 15 Apr 2017 09:49:28 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: charles@HIDDEN, 26513 <at> debbugs.gnu.org
Subject: RE: bug#26513: 25.2; pop-up-frames and *Completions* buffer
References: <m2d1ce81yl.fsf@HIDDEN>
In-Reply-To: <m2d1ce81yl.fsf@HIDDEN>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1  (1003210) [OL
 12.0.6753.5000 (x86)]
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Source-IP: userv0022.oracle.com [156.151.31.74]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 26513
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

FWIW, I reported such problems a couple of decades ago.
Unfortunately (for me at least), there is not enough
use or interest in using separate frames by default,
including for *Completions*, so this kind of thing has
not gotten the love it would really need for progress.

I've tried to do what I can in my own environment to
handle this, especially in the context of a standalone=20
minibuffer frame.  And Martin has been helpful wrt
problems that resulted from changes in the Emacs code
over the years.

Here's what I do for *Completions*, FWIW:

I add an entry to `special-display-buffer-names* that
has a function, `1on1-display-*Completions*-frame',
which takes care of displaying the *Completions* frame.

The main thing that function does is redirect the
focus of the *Completions* frame to the standalone
minibuffer frame (if the minibuffer is active) or
(if not) to the buffer that was current before
*Completions* display was requested:

(let ((redirect
       (if (active-minibuffer-window)
           1on1-minibuffer-frame
         (and completion-reference-buffer
              (get-buffer-window
                completion-reference-buffer 'visible)
                (not (eq (get-buffer "*Completions*")=20
                         completion-reference-buffer))
                (window-frame
                  (get-buffer-window
                    completion-reference-buffer t))))))
      (when redirect
        (redirect-frame-focus (selected-frame)
                              redirect)))

I've said it before, but I think it is relevant:
Back in the early 1990s the Emacs implementation
named `Epoch' worked very well with a standalone
minibuffer frame, out of the box.

All I've done is try to work around Emacs's poor
(non-existent) support for this kind of use case -
essentially trying to emulate Epoch behavior.

But frames remain the poor cousin to windows in
Emacs.  Part of that is likely due to the fact that
Emacs cannot completely control the behavior of
frames for all window managers.  Window mgrs are
different, and they have ultimate control.

The other reason is probably just because few Emacs
users try to use separate frames by default, or if
they try they soon give up due to the many hurdles.

Anyway, you might try, to start with, redirecting
the frame focus back to `completion-reference-buffer'.

For reference, in case it helps, my code for
`1on1-display-*Completions*-frame' is in `oneonone.el'
(https://www.emacswiki.org/emacs/download/oneonone.el).
My code for keybindings in `completion-list-mode-map'
is in `icicles-mode.el'
(https://www.emacswiki.org/emacs/download/icicles-mode.el).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26513; Package emacs. Full text available.

Message received at 26513 <at> debbugs.gnu.org:


Received: (at 26513) by debbugs.gnu.org; 15 Apr 2017 14:50:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 15 10:50:52 2017
Received: from localhost ([127.0.0.1]:49095 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1czP2K-0002KG-8G
	for submit <at> debbugs.gnu.org; Sat, 15 Apr 2017 10:50:52 -0400
Received: from mout.gmx.net ([212.227.17.20]:64156)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1czP2J-0002K3-3Y
 for 26513 <at> debbugs.gnu.org; Sat, 15 Apr 2017 10:50:51 -0400
Received: from [192.168.1.100] ([213.162.68.80]) by mail.gmx.com (mrgmx101
 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lip2P-1cTvhD1RTZ-00cv5H; Sat, 15
 Apr 2017 16:50:38 +0200
Message-ID: <58F23339.6090201@HIDDEN>
Date: Sat, 15 Apr 2017 16:50:33 +0200
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: "Charles A. Roelli" <charles@HIDDEN>, 26513 <at> debbugs.gnu.org
Subject: Re: bug#26513: 25.2; pop-up-frames and *Completions* buffer
References: <m2d1ce81yl.fsf@HIDDEN>
In-Reply-To: <m2d1ce81yl.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:sscv3+97oldTaVD+VHClLnEMLtzVitPsqgp6fFTvkTAmCPz7sxd
 SswzffkuOM21wSsJtyLvMcsEUGiorhM15g0gify2vmTlJwSHBwGODIf9Eov3R0JklwdVdYo
 NSU0gYyPfscvmuQyfJNBMwPJhQUzvmXeoWGD6m9a61RFWyMIkyJCI6svEfC0968rwyku1c+
 4Rgk/3H6ZBzLIE7ddQo4w==
X-UI-Out-Filterresults: notjunk:1;V01:K0:vS14Vz5EAT0=:ZlRSe71uxhfyKu3tM8qlT7
 JOnIpdfiGx6EFidNelAwVB2Q1Gsw5+RwM9YzghjDk4nQ8F7AdqK2ol6wb/jThzik9H8GdCVXx
 Ezta/UTJ3qSr1HKvCmlttsywwyQTs0LvRANI5Uyrl3mwB6x/ISkSQV9gVhejgrDnLW22HC/6v
 WvyU59s0n6n0HbOIqCffMg1DK4FQBNbm3e5jRdaQBGxTNCD0EWc/aAb0OgryPW89opYeLNSZA
 ySMRnStMU8JlK4I+awX8BWijg41BWoJysAWkOkuLMsB63xlmcywlW4f55h3GBK7ypGi8R6eb2
 7qCYFGZNxt3aFeFxIN0Nb2zMZZ5XIrAHf0obIuN0VK29kfNyNTLh+doCxDLAeCGIh5C+bW4qS
 smLG+RyyNKuztLI42OrZkslT7nkEh1Kq5z1a2IBhr39nYtsh/L7cI5TP9cToVYNd1rF8pOEc1
 tBivNNHfwMJbLaevPQHtfJDh7sSLygjEfRxDs0n/as6azydCmn+2CcodtfCAJRBILDldAbTN0
 zl4yu+mzhNbuzYaFq/tjs5Zne2gNdp1jvHRiOqO5zmzauLgNIm11+6SitiMr7JpRg0bS7MeM4
 X7TDEgU9nTfz0ekwVyrwsMRn8wqWi936gYFLSgi/mZRxGkWSRrzDgn8SicCBJx4Mew1QmY9y8
 YGyMgMQWnDXKJjCkiILE1JQgk8Se6Sq1nWYcMjNYGySVg6Pn6wq/7koeyj9bjzMouad4KRS/h
 5Wen30N9Gw9sobnhZeURBE3sqdLQa3ypYKYHN7V1aVCRAh2Sr7OB4UtKYSanTFpCa9e88tPNX
 grR4+cc4m5Z0bd1V8D3v6ZvUOK0Ww==
X-Spam-Score: 0.8 (/)
X-Debbugs-Envelope-To: 26513
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.8 (/)

 > M-x set-variable RET pop-up-frames RET t RET
 > M-x global- TAB
 >
 > The *Completions* buffer is opened in a new frame, but the cursor is in
 > the frame too, so the user has to switch back to the minibuffer to
 > continue typing.
 >
 > How can the user ensure that the cursor goes back to the minibuffer
 > automatically?  Could the solution be documented somewhere (maybe in the
 > docstring of `pop-up-frames') or could the completion code take care of
 > it?

This use of *Completions* seems strange in another way: When I click on
one of the items in the *Completions* buffer or type RET on it, the
respective mode is enabled and the *Completions* frame stays around.  Is
that the desired behavior?

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#26513; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 15 Apr 2017 09:17:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 15 05:17:31 2017
Received: from localhost ([127.0.0.1]:47846 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1czJpj-0007SQ-Cc
	for submit <at> debbugs.gnu.org; Sat, 15 Apr 2017 05:17:31 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51723)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <charles@HIDDEN>) id 1czJph-0007SD-Qz
 for submit <at> debbugs.gnu.org; Sat, 15 Apr 2017 05:17:30 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <charles@HIDDEN>) id 1czJpb-0004Lo-ON
 for submit <at> debbugs.gnu.org; Sat, 15 Apr 2017 05:17:24 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:42301)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <charles@HIDDEN>) id 1czJpb-0004Lg-L5
 for submit <at> debbugs.gnu.org; Sat, 15 Apr 2017 05:17:23 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:42687)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <charles@HIDDEN>) id 1czJpa-0008Cn-LO
 for bug-gnu-emacs@HIDDEN; Sat, 15 Apr 2017 05:17:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <charles@HIDDEN>) id 1czJpX-0004Jd-GH
 for bug-gnu-emacs@HIDDEN; Sat, 15 Apr 2017 05:17:22 -0400
Received: from sinyavsky.aurox.ch ([37.35.109.145]:60841)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <charles@HIDDEN>) id 1czJpX-0004HC-8E
 for bug-gnu-emacs@HIDDEN; Sat, 15 Apr 2017 05:17:19 -0400
Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1])
 by sinyavsky.aurox.ch (Postfix) with ESMTP id C89CD223E6
 for <bug-gnu-emacs@HIDDEN>; Sat, 15 Apr 2017 09:13:18 +0000 (UTC)
Authentication-Results: sinyavsky.aurox.ch (amavisd-new);
 dkim=pass (1024-bit key) reason="pass (just generated, assumed good)"
 header.d=aurox.ch
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h=
 content-type:content-type:mime-version:message-id:date:date
 :subject:subject:to:from:from; s=dkim; t=1492247597; x=
 1493111598; bh=2QCJmQAnJZQrynAxJfimcPIIHwEwmOe4vTTA1vhAI04=; b=B
 YbhodGtq10V7/gkbYvoYVhJQKyVQyoI+5jr4+3InP7TyrbB9pgZIgU8Cu393do7F
 X7AFyWI5vugpoFso6JYpcwk92dGYiwff6J+xN3mqqnM9DpriiSb1pTDO+16PphTZ
 tlZcR9+uD5W2mVFNkXhv9pHMoLCZNXS0BNQbUI/x6Q=
X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com
Received: from sinyavsky.aurox.ch ([127.0.0.1])
 by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new,
 port 10026) with ESMTP id 6aI5dVUtEmeD for <bug-gnu-emacs@HIDDEN>;
 Sat, 15 Apr 2017 09:13:17 +0000 (UTC)
Received: from gray (179.133.105.92.dynamic.wline.res.cust.swisscom.ch
 [92.105.133.179])
 by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 69149223E4
 for <bug-gnu-emacs@HIDDEN>; Sat, 15 Apr 2017 09:13:17 +0000 (UTC)
From: charles@HIDDEN (Charles A. Roelli)
To: bug-gnu-emacs@HIDDEN
Subject: 25.2; pop-up-frames and *Completions* buffer
Date: Sat, 15 Apr 2017 11:17:06 +0200
Message-ID: <m2d1ce81yl.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.1 (----)

From emacs -Q:

M-x set-variable RET pop-up-frames RET t RET
M-x global- TAB

The *Completions* buffer is opened in a new frame, but the cursor is in
the frame too, so the user has to switch back to the minibuffer to
continue typing.

How can the user ensure that the cursor goes back to the minibuffer
automatically?  Could the solution be documented somewhere (maybe in the
docstring of `pop-up-frames') or could the completion code take care of
it?

In GNU Emacs 25.2.1 (x86_64-apple-darwin10.8.0, NS appkit-1038.36 Version 10.6.8 (Build 10K549))
 of 2017-02-22 built on gray
Windowing system distributor 'Apple', version 10.3.1038
Configured using:
 'configure --with-modules'

Configured features:
JPEG RSVG NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES




Acknowledgement sent to charles@HIDDEN (Charles A. Roelli):
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#26513; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 15 Apr 2017 17:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.