From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Please review: Small fix for window.c Date: Wed, 08 Mar 2006 21:23:19 +0100 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1141849603 26793 80.91.229.2 (8 Mar 2006 20:26:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Mar 2006 20:26:43 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 08 21:26:32 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FH5EP-0007rP-1M for ged-emacs-devel@m.gmane.org; Wed, 08 Mar 2006 21:26:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FH5EL-0006Vn-2p for ged-emacs-devel@m.gmane.org; Wed, 08 Mar 2006 15:25:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FH5DZ-0006KJ-Ro for emacs-devel@gnu.org; Wed, 08 Mar 2006 15:25:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FH5DT-0006IA-Ln for emacs-devel@gnu.org; Wed, 08 Mar 2006 15:25:06 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FH5DS-0006I2-ML for emacs-devel@gnu.org; Wed, 08 Mar 2006 15:25:02 -0500 Original-Received: from [195.41.46.236] (helo=pfepb.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FH5GN-0003gO-3J for emacs-devel@gnu.org; Wed, 08 Mar 2006 15:28:03 -0500 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepb.post.tele.dk (Postfix) with SMTP id 681C4A50056; Wed, 8 Mar 2006 21:24:57 +0100 (CET) Original-To: Stefan Monnier In-Reply-To: (Stefan Monnier's message of "Wed, 08 Mar 2006 11:11:49 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:51379 Archived-At: Stefan Monnier writes: > A softly dedicated window is a window that's been created specifically to > display a particular buffer, but whose allegiance to this buffer may not > be eternal. More specifically if the user decides to do switch-to-buffer, > no error will be signalled and instead the dedication flag will simply be > set to nil. This way, when the buffer gets deleted the window also gets > deleted but only if the user hasn't used that window for some > other purpose in the mean time. > > With this scheme, pop-to-buffer would typically set the dedicated flag of > windows it creates to `soft', so many/most windows start out as being > softly dedicated. > > I hope I'll get enough time and motivation at some point to try and convince > Emacs's maintainers that this is a good idea and should be installed. I think it sounds like an excellent idea! > With soft-dedication, the use of set-window-configuration to try and undo > what display-buffer has done is replaced by a call to kill-buffer or > bury-buffer. Nice! I was thinking about another kind of "hard" dedication -- where a window cannot be deleted unless you kill the associated buffer. It seems useful for stuff like ECB which don't want _anything_ to mess with its windows. -- Kim F. Storm http://www.cua.dk