From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Do not switch focus to the completions buffer window Date: Thu, 6 Feb 2014 19:44:49 -0800 (PST) Message-ID: References: <87r47fpqkb.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1391744714 4178 80.91.229.3 (7 Feb 2014 03:45:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Feb 2014 03:45:14 +0000 (UTC) To: Michael Heerdegen , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 07 04:45:21 2014 Return-path: Envelope-to: geh-help-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 1WBcNV-00062z-EJ for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Feb 2014 04:45:21 +0100 Original-Received: from localhost ([::1]:39539 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBcNU-0004D4-UE for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Feb 2014 22:45:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38201) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBcNB-00048M-Rm for help-gnu-emacs@gnu.org; Thu, 06 Feb 2014 22:45:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBcN3-00019m-8U for help-gnu-emacs@gnu.org; Thu, 06 Feb 2014 22:45:01 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:31715) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBcN3-00019i-2F for help-gnu-emacs@gnu.org; Thu, 06 Feb 2014 22:44:53 -0500 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s173ip88004153 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 7 Feb 2014 03:44:52 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s173iowA010153 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 7 Feb 2014 03:44:51 GMT Original-Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s173ioB0023051; Fri, 7 Feb 2014 03:44:50 GMT In-Reply-To: <87r47fpqkb.fsf@web.de> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95958 Archived-At: > The *Completions* window is never selected for me. I tested with > Emacs 23 and Emacs 24. Even better, with the latest Emacs release, > the *Completions* pop up window is even automatically closed after > successful completion. >=20 > So I think what you see is caused by your setup, or you use a really > old Emacs version. Or please give a recipe of what you see starting > from emacs -Q. Perhaps Leo is doing something like this? emacs -Q (setq pop-up-frames t) M-x for TAB That's enough, on MS Windows at least, to repro the problem. When MS Windows creates a new frame, it gives it the input focus. Anything you type after the TAB above will be sent to *Completions*. This has been a limitation of Emacs since forever, and a limitation that I, for one, jump through some hoops to workaround. (And it was a problem solved by the Epoch version of Emacs 20 years ago.) Dunno whether this is in fact related to Leo's actual problem. But it is one possible scenario that leads to the problem Leo described.