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: klaus.berndl
Subject: RE: Please review: Small fix for window.c
Date: Thu, 9 Mar 2006 08:52:33 +0100

Kim F. Storm wrote:
> 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!

I second this...

> 
>> 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.

Yes, sounds like an excellent idea, different levels of dedication could
solve the problems of tools like ECB and would allow to throw away a lot
of advices currently necessary for ECB!




reply via email to

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