From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Usage examples of dedicated windows and popup frames? Date: Fri, 08 Jul 2011 19:54:01 +0200 Message-ID: <8762nc8xqe.fsf@member.fsf.org> References: <871uy0n9ch.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1310147683 2426 80.91.229.12 (8 Jul 2011 17:54:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Jul 2011 17:54:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 08 19:54:35 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QfFG1-00020U-AX for ged-emacs-devel@m.gmane.org; Fri, 08 Jul 2011 19:54:29 +0200 Original-Received: from localhost ([::1]:35299 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfFG0-0002gE-AT for ged-emacs-devel@m.gmane.org; Fri, 08 Jul 2011 13:54:28 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfFFg-0002fY-4O for emacs-devel@gnu.org; Fri, 08 Jul 2011 13:54:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QfFFe-0004ho-0a for emacs-devel@gnu.org; Fri, 08 Jul 2011 13:54:07 -0400 Original-Received: from out5.smtp.messagingengine.com ([66.111.4.29]:47900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfFFd-0004hX-J0 for emacs-devel@gnu.org; Fri, 08 Jul 2011 13:54:05 -0400 Original-Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.messagingengine.com (Postfix) with ESMTP id 4D0D420C76; Fri, 8 Jul 2011 13:54:04 -0400 (EDT) Original-Received: from frontend2.messagingengine.com ([10.202.2.161]) by compute3.internal (MEProxy); Fri, 08 Jul 2011 13:54:04 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=from:to:cc:subject:references:date:in-reply-to:message-id:mime-version:content-type; s=smtpout; bh=6J2QZmkQbjYDwL1qfbDwwS8+Cuc=; b=kcy0BcGU8F5JmEhkrMG3Ev1lHVBSaR2OzsDnGpg+5276c2jxdJ88C9V87UIa7aPNzGeLqi9M3nBU4tDOLJk31K9i3oB4+FgTWwqCwDVGVjUJNIGaWdU/AToHKuEuc0k5PAksVUgaMnzlGiGwDgqui98Fl0yFzYiOVhKHNDBBiEU= X-Sasl-enc: 8GTPkTBAn4r0ZPfFyEKjSaHn2CS0aUaiiJYZAUGyr12K 1310147643 Original-Received: from thinkpad (77-23-199-184-dynip.superkabel.de [77.23.199.184]) by mail.messagingengine.com (Postfix) with ESMTPSA id 5461D4409A7; Fri, 8 Jul 2011 13:54:03 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Fri, 08 Jul 2011 12:11:35 -0400") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.29 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:141812 Archived-At: Stefan Monnier writes: Hi Stefan, >> (setq pop-up-frames 'graphic-only >> display-buffer-reuse-frames t) >> >> Most of them were opened for showing completion possibilities, but >> after I've finished completion they became useless. It would be >> great if those would be closed automagically... > > "They" should be iconified automatically and only one frame should be > (re-)used for *Completions*. Hm, not what I get. With emacs -Q updated yesterday: 1. Goto *scratch* and eval the form above. 2. (def ==> a comletion frame pops up *and gets input focus* 3. C-x 5 o to get back to the original frame 4. (defalia ==> defalias is the sole completion, and at that point in time, the completion frame shows *scratch*, too, just like the frame I'm typing in. Oh, now I did another completion, and this time the completion frame was indeed iconified. Unfortunately, it doesn't come up automatically when completing again. Doing it manually shows that it contains the new completion list. Another annoyance (but not Emacs' fault) is that the usability highly depends on the window manager. Here, using GNOME3 the window placement is not that advanced. The popup frames often appear on top of the emacs frame I'm typing in. So decided to use pop-up-frames by default, but keep completion and other temporary stuff (buffers starting/ending with *) in the current frame: (setq pop-up-frames 'graphic-only display-buffer-reuse-frames t special-display-regexps '(("^\\*.*\\*$" pop-to-buffer-same-frame))) Using that (emacs -Q), completion now pops up a new window showing *Completions*, and also a new frame showing the same buffer... If I understand the docs correctly, then I could also use (setq special-display-regexps '(("^\\*.*\\*$" ((same-frame . t))))) but with that, completions still appear in a popup frame and no popup window is shown at all. Bye, Tassilo