On 09 Mar 2003, Klaus Berndl wrote:
On Fri, 21 Feb 2003, Steve Youngs wrote:
> Cc'd to Klaus because ECB is triggering the bug.
> Cc'd to Mike because it might be related to his recent window
> configuration work.
>
> ================================================================
> Dear Bug Team!
>
> M-x ecb-activate RET results in:
>
> 'ECB 1.91.1: Only an edit-window can be deleted!'
>
> This is _only_ happening under XEmacs 21.5 and is reproducible with
> '-vanilla'.
>
> Le stack:
>
> # bind (standard-output stack-trace-on-signal debug-on-signal
> # stack-trace-on-error debug-on-error) (unwind-protect ...)
> signal(error ("ECB 1.91.1: Only an edit-window can be deleted!"))
> # bind (args datum)
> cerror("ECB 1.91.1: Only an edit-window can be deleted!")
> apply(cerror "ECB 1.91.1: Only an edit-window can be deleted!" nil)
> # bind (args datum)
> error("ECB 1.91.1: Only an edit-window can be deleted!")
> # bind (debug-on-error ad-return-value force window)
> delete-window(#<window on " *ECB Sources*" 0xdb8d>)
> # bind (next window window)
> window-reduce-to-one(#<window on " *ECB Directories*" 0xce19>)
> # bind (window)
> window-reduce-to-one(#<window 0xdb89>)
> # bind (combination-start root-window frame)
> frame-reduce-to-one-window(#<x-frame "emacs" 0x1356>)
> # bind (configuration frame)
> really-set-window-configuration(#<x-frame "emacs" 0x1356>
I do not know what this `really-set-window-configuration' and why it tries
to "reduce to one window" and therefore deleting some of current windows. I
do not use XEmacs 21.5! But what i can say is: Using
`set-window-configuration' in ECB is a somehow and probably very unused
feature and should IMHO be removed because really unnecessary. But Kevin,
another developer of ECB, wants this feature - at least he has wanted it
some time ago - i will asked him if we can removed this stuff. Even we do
not remove this call we can call it conditionally only if an ECB users
really want using this feature - which will be disabled by default.
Another remark: The error comes from an advice for `delete-window' which is
needed by ECB to work correct! This advice has to be activated during ECB
runtime but if this is a problem we could call `set-window-configuration'
by a wrapper which temporally disables the ECB-advices - but i general this
is not a really good idea and i would not do this if not really necessary.
OK, maybe Mike can better answer why really-set-window-configuration tries
to delete-windows and why this is necessary. Then we can decide how to fix
the problem and also who is fixing it, Mike or i ;-)
Sorry for the noise - my recent followup was complete nonsense - probably it
was too early in the morning for answering ;-) Next time i should first wake
up completely before answering to bug reports...
I will try to answer later and then more useful....
Klaus
Ciao
Klaus
[...]
--
Klaus Berndl mailto: klaus.berndl(a)sdm.de
sd&m AG
http://www.sdm.de
software design & management
Thomas-Dehler-Str. 27, 81737 München, Germany
Tel +49 89 63812-392, Fax -220