From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#23842: 24.4; Runaway background process Date: Mon, 27 Jun 2016 12:54:52 -0400 Message-ID: References: <576F977E.8060405@cs.ucla.edu> <57703204.9090402@cs.ucla.edu> <02ecaa18-2108-e5c7-c7c4-56896a9c2869@cornell.edu> <83lh1qy6lm.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1467046781 27238 80.91.229.3 (27 Jun 2016 16:59:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jun 2016 16:59:41 +0000 (UTC) Cc: eggert@cs.ucla.edu, iperryman@xtreme-eda.com, 23842@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 27 18:59:30 2016 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 1bHZsf-00034b-IO for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Jun 2016 18:59:29 +0200 Original-Received: from localhost ([::1]:60006 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHZse-0001Cw-Vj for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Jun 2016 12:59:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHZoP-0005YU-Lq for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2016 12:55:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHZoM-0002XE-BM for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2016 12:55:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHZoM-0002X9-8U for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2016 12:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bHZoM-00014o-3e for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2016 12:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Jun 2016 16:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23842 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23842-submit@debbugs.gnu.org id=B23842.14670464594066 (code B ref 23842); Mon, 27 Jun 2016 16:55:02 +0000 Original-Received: (at 23842) by debbugs.gnu.org; 27 Jun 2016 16:54:19 +0000 Original-Received: from localhost ([127.0.0.1]:58456 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bHZnf-00013W-GQ for submit@debbugs.gnu.org; Mon, 27 Jun 2016 12:54:19 -0400 Original-Received: from limerock04.mail.cornell.edu ([128.84.13.244]:59343) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bHZne-00013K-Qe for 23842@debbugs.gnu.org; Mon, 27 Jun 2016 12:54:19 -0400 X-CornellRouted: This message has been Routed already. Original-Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock04.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id u5RGsAoR020628; Mon, 27 Jun 2016 12:54:11 -0400 Original-Received: from [192.168.1.8] (mta-68-175-148-36.twcny.rr.com [68.175.148.36] (may be forged)) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id u5RGs9SE019615 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 27 Jun 2016 12:54:10 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 In-Reply-To: <83lh1qy6lm.fsf@gnu.org> X-PMX-Cornell-Gauge: Gauge=XXXXX X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:120158 Archived-At: On 6/27/2016 11:49 AM, Eli Zaretskii wrote: >> From: Ken Brown >> Date: Mon, 27 Jun 2016 09:24:06 -0400 >> Cc: 23842@debbugs.gnu.org >> >> ;; Show possible completions in a temporary buffer. >> (with-output-to-temp-buffer "*Completions*" >> (display-completion-list allcomp)) >> ;; Wait for a key press. Then delete *Completion* window >> (momentary-string-display "" (point)) >> (delete-window (get-buffer-window (get-buffer "*Completions*"))))) >> >> It's hard to see how this could possibly work. As soon as you click in >> the *Completion* window, the window is deleted. > > It could perhaps work if we didn't check the window for being a live > one. > > Anyway, the code is definitely broken and should be fixed. Yes. And there are even problems with it unrelated to the check for the window being live. For example, suppose you want to switch to the *Completions* window to select the desired completion without using the mouse. As soon as you type C-x (meant to be followed by o), the *Completions* window is gone. Ken