From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Completion: minibuffer.el vs comint.el Date: Tue, 29 Mar 2011 11:14:17 +0200 Message-ID: <4D91A2E9.9070409@gmx.at> References: <20101114173358.683A6628353@mail.cs.ucr.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1301390213 23650 80.91.229.12 (29 Mar 2011 09:16:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2011 09:16:53 +0000 (UTC) Cc: Andrew Helsley , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 29 11:16:49 2011 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.69) (envelope-from ) id 1Q4V2f-0000mm-B1 for ged-emacs-devel@m.gmane.org; Tue, 29 Mar 2011 11:16:49 +0200 Original-Received: from localhost ([127.0.0.1]:52815 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4V2e-00029d-L0 for ged-emacs-devel@m.gmane.org; Tue, 29 Mar 2011 05:16:48 -0400 Original-Received: from [140.186.70.92] (port=38543 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4V2U-00027I-1u for emacs-devel@gnu.org; Tue, 29 Mar 2011 05:16:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4V2T-0005qy-1n for emacs-devel@gnu.org; Tue, 29 Mar 2011 05:16:37 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:56923) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Q4V2S-0005ql-KS for emacs-devel@gnu.org; Tue, 29 Mar 2011 05:16:37 -0400 Original-Received: (qmail invoked by alias); 29 Mar 2011 09:16:35 -0000 Original-Received: from 62-47-60-40.adsl.highway.telekom.at (EHLO [62.47.60.40]) [62.47.60.40] by mail.gmx.net (mp002) with SMTP; 29 Mar 2011 11:16:35 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18sxhZMLiwswtJywE0/t53DEYiabemippglM+NpgE e4T9x3tCRtFafT User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 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:137838 Archived-At: >> I think it may become dedicated in the function `minibuffer-completion-help' >> in `minibuffer.el'. Notice the local binding of the variable >> display-buffer-mark-dedicated'. From the documentation of the variable: > >> If non-nil, `display-buffer' marks the windows it creates as dedicated. > >> `display-buffer' itself is called from the `with-output-to-temp-buffer' C >> function (at least that is what `with-output-...'s docs suggest). > >> Unfortunately as for intent/reason behind this behavior, I don't have >> a clue. > > This is so as to know whether to delete the window when the *Completions* > buffer is hidden/buried. > > Maybe we should use another approach (hi Martin ;-). E.g. just add > a flag "created for *Completions*" when we create the window, that would > work similarly to `dedicated' w.r.t bury-buffer but which would not > prevent display-buffer from reusing that window for some other buffer. The dedicated window method works well for displaying a buffer in a separate frame or a new window. It can't be used when a window is reused for displaying the buffer. In my branch `display-buffer' always records the previous state and burying the buffer or quitting the window conveniently restores the previous state. So when you dedicate a window to its buffer you exclusively do that because you do not want to display another buffer in that window. martin