emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Please review: Small fix for window.c


From: Kim F. Storm
Subject: Re: Please review: Small fix for window.c
Date: Wed, 08 Mar 2006 21:23:19 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Stefan Monnier <address@hidden> 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 <address@hidden> http://www.cua.dk





reply via email to

[Prev in Thread] Current Thread [Next in Thread]