문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top