From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xavier Maillard Newsgroups: gmane.emacs.devel Subject: Re: completions - remove window after use? Date: Thu, 12 Nov 2009 04:00:51 +0100 Organization: GNU's Not UNIX! Message-ID: <200911120300.nAC30pOI000785@fed.local> References: <61C01A08-8FB6-4908-B9F1-B9F1CE3E3D92@gmail.com> Reply-To: Xavier Maillard NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1257994854 31037 80.91.229.12 (12 Nov 2009 03:00:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Nov 2009 03:00:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 12 04:00:46 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N8PvQ-0006ZW-7b for ged-emacs-devel@m.gmane.org; Thu, 12 Nov 2009 04:00:44 +0100 Original-Received: from localhost ([127.0.0.1]:44199 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8PvP-0002LB-UD for ged-emacs-devel@m.gmane.org; Wed, 11 Nov 2009 22:00:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N8PvL-0002Ko-Cf for emacs-devel@gnu.org; Wed, 11 Nov 2009 22:00:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N8PvG-0002G0-CK for emacs-devel@gnu.org; Wed, 11 Nov 2009 22:00:38 -0500 Original-Received: from [199.232.76.173] (port=44654 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8PvG-0002Fp-3U for emacs-devel@gnu.org; Wed, 11 Nov 2009 22:00:34 -0500 Original-Received: from out4.smtp.messagingengine.com ([66.111.4.28]:35499) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N8PvF-0005dF-Nj for emacs-devel@gnu.org; Wed, 11 Nov 2009 22:00:33 -0500 Original-Received: from compute2.internal (compute2.internal [10.202.2.42]) by gateway1.messagingengine.com (Postfix) with ESMTP id 42D70BE7FC; Wed, 11 Nov 2009 22:00:33 -0500 (EST) Original-Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Wed, 11 Nov 2009 22:00:33 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=date:message-id:from:to:cc:in-reply-to:subject:reply-to:references; s=smtpout; bh=6bKnlqZIMn/sneXtNVAHrszqsXc=; b=BTQtsUS1SR0CyB/YACSOwT1nlQm/MolxsiV+ftopcHt8FNZGmJMiKqtQtnCQciiEZBI/ONK3FMDhawQ79CPyllL1RrG6fQu2nfZiZ2F6G5S+cUG+wY51uJDH2Dt3jgwYKNtUPGLVHldE3wAq8yeTeUTWENCjz7ChO1xZPsgghRE= X-Sasl-enc: EhFJmGagH4/3jPN0DTZAqboG9OXjnHafWXF7fJNmnLQ6 1257994832 Original-Received: from fed.local (cha51-2-82-244-211-40.fbx.proxad.net [82.244.211.40]) by mail.messagingengine.com (Postfix) with ESMTPSA id BADF64AC782; Wed, 11 Nov 2009 22:00:32 -0500 (EST) Original-Received: from fed.local (fed.local [127.0.0.1]) by fed.local (8.14.3/8.14.3) with ESMTP id nAC30p5R000789 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 Nov 2009 04:00:52 +0100 Original-Received: (from xavier@localhost) by fed.local (8.14.3/8.14.3/Submit) id nAC30pOI000785; Thu, 12 Nov 2009 04:00:51 +0100 X-Authentication-Warning: fed.local: xavier set sender to xma@gnu.org using -f In-reply-to: <61C01A08-8FB6-4908-B9F1-B9F1CE3E3D92@gmail.com> (message from David Reitter on Wed, 11 Nov 2009 14:45:52 -0500) Jabber-ID: xavier@maillard.im X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:116858 Archived-At: When showing a *completions* buffer in a new window opened for it (TAB in find-file minibuffer for instance), I wonder why the window doesn't get deleted when completion has finished. For instance, when an existing file is found, the *Completions* buffer is buried, but I see a split frame with the original buffer in the top window and _some other_ buffer in the lower window. Shouldn't the window for the completions buffer be removed whenever it has been popped up just for the buffer? You could hook a function that does this on `minibuffer-exit-hook'. For example, (100% untested solution): (add-hook 'minibuffer-exit-hook '(lambda () (let ((comp "*Completions*")) (and (get-buffer comp) (kill-buffer ))))) Xavier -- http://www.gnu.org http://www.april.org http://www.lolica.org