I find ECB mode quite useful at times due to its souped up Speedbar and nice code browsing capabilities. Unfortunately, I also heavily rely on winner mode, which is incompatible with ECB. Even after I do M-x ecb-deactivate
, all the ECB defuns appear loaded, and winner commands still throw an error about ECB/winner incompatibility. Is there a way to remove the ECB definitions so that winner works as before, short of restarting Emacs?
The problem seems to be that ECB uses advice to display the error message ("Can't use winner-mode functions in the ecb-frame"), and this advice is not activated when ecb-deactivate
is called.
I was able to work around this problem by disabling the advice in ecb-deactivate-hook
:
(add-hook 'ecb-deactivate-hook (lambda () (ecb-disable-advices 'ecb-winman-not-supported-function-advices t)))
However, you should probably report this as a bug to the maintainers of ECB.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With