From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#11892: 24.1; Regression: *Completions* disappears as soon as it is displayed Date: Mon, 9 Jul 2012 10:34:44 -0700 Message-ID: <82EB440D3890406AA9467FDE1D8B4ECA@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1341855358 9985 80.91.229.3 (9 Jul 2012 17:35:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Jul 2012 17:35:58 +0000 (UTC) To: 11892@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 09 19:35:58 2012 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 1SoHsH-0003IH-I5 for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Jul 2012 19:35:53 +0200 Original-Received: from localhost ([::1]:50190 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoHsG-0000IM-Ks for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Jul 2012 13:35:52 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoHsD-0000Cg-Dq for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2012 13:35:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SoHsB-0001mM-NW for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2012 13:35:48 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48905) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoHsB-0001lD-IM for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2012 13:35:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SoHxG-0007zK-KB for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2012 13:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Jul 2012 17:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11892 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.134185562030637 (code B ref -1); Mon, 09 Jul 2012 17:41:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Jul 2012 17:40:20 +0000 Original-Received: from localhost ([127.0.0.1]:58451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoHwZ-0007y4-Id for submit@debbugs.gnu.org; Mon, 09 Jul 2012 13:40:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48500) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoHwW-0007xs-D2 for submit@debbugs.gnu.org; Mon, 09 Jul 2012 13:40:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SoHrO-0001Jw-P6 for submit@debbugs.gnu.org; Mon, 09 Jul 2012 13:35:00 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:59566) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoHrO-0001Jk-KA for submit@debbugs.gnu.org; Mon, 09 Jul 2012 13:34:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoHrM-0008Vf-NT for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2012 13:34:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SoHrG-0001GG-MN for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2012 13:34:56 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:29329) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoHrG-0001Fr-D1 for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2012 13:34:50 -0400 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q69HYkLn015957 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 9 Jul 2012 17:34:47 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q69HYjH1012962 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 9 Jul 2012 17:34:46 GMT Original-Received: from abhmt118.oracle.com (abhmt118.oracle.com [141.146.116.70]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q69HYj9W001147 for ; Mon, 9 Jul 2012 12:34:45 -0500 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 09 Jul 2012 10:34:45 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac1d+SD4r6vce+GjRly1g4ji6m1ysA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:61772 Archived-At: The bug occurs with my setup. Sorry, but I do not have a recipe from emacs -Q. When I use TAB in a shell buffer, *Completions* is flash-displayed (in a separate frame in my setup), but that frame is removed as soon as it is shown, making completion impossible (useless). This does not happen in Emacs 23.3 or prior. I tried to track this down using the debugger, but that is very difficult because using the debugger interferes - the frame does not disappear when I walk through the code. (The code uses post-command-hook and such, which perhaps affects this.) I tried adding calls to `message' in the code, to see what was happening. I was able to determine that `minibuffer-hide-completions' was called (inappropriately) from `completion-in-region--postch: Debugger entered--entering a function: minibuffer-hide-completions() * completion-in-region-mode(-1) completion-in-region--postch() And I was able to track it down to this place, in `completion-in-region-mode': (if (null completion-in-region-mode) (progn (message "buf: %S" (window-buffer)) ; <============ (unless (equal "*Completions*" (buffer-name (window-buffer))) (minibuffer-hide-completions))) Here I see that (window-buffer) is in fact #. FWIW, my dedicated frame for *Completions* has its input focus redirected to my standalone minibuffer frame. Dunno whether that is involved here. Hope this helps and this can be fixed soon. Thx. Note: I would have tested with a more recent build, but I cannot use recent builds because of outstanding Emacs bugs. (I'm hoping for a new Windows build today that might make it usable.) ---- P.S. FWIW, it is a _bear_ to use the debugger with code that calls `pcase'. It's like heading off down the Silk Road for a couple-month journey, even if you guess correctly where you can hit `c' to expand macros etc. ;-) ---- In GNU Emacs 24.1.1 (i386-mingw-nt5.1.2600) of 2012-06-10 on MARVIN Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (4.6) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include'