|
From: | Kevin Rodgers |
Subject: | Re: emacs and buffer switching |
Date: | Thu, 07 Dec 2006 12:39:58 -0700 |
User-agent: | Thunderbird 1.5.0.8 (Windows/20061025) |
Hadron Quark wrote:
Alas, its all a little more complicated. I need to call winring-init on the FIRST call to my ecb function but not on the others. In addition, if I manually turn off ecb, it should not turn it back on when I move to a c derivative. at the mo I have: (defun ecb-first () (interactive) (ecb-activate) (ecb-winman-winring-enable-support) (winring-initialize) ) (defun ecb-window-configuration () (if(derived-mode-p 'c-mode) (ecb-activate) ;; **** call ecb-first on FIRST call?? ;; (ecb-deactivate); )) (add-hook 'window-configuration-change-hook 'ecb-window-configuration) The problem is the need to activate ecb before winring if you want winring to support ecb. its all very messy and my elisp istn up to the task :(
Surely there is a variable that indicates whether winring has been initialized yet. Assuming that variable is called winring-initialized: (defun ecb-window-configuration () (if (derived-mode-p 'c-mode) (progn (ecb-activate) (unless winring-initialized (ecb-winman-winring-enable-support) (winring-initialize))) (ecb-deactivate))) (add-hook 'window-configuration-change-hook 'ecb-window-configuration) Have you considered asking the experts at ecb-list@lists.sourceforge.net (see http://lists.sourceforge.net/lists/listinfo/ecb-list)? -- Kevin
[Prev in Thread] | Current Thread | [Next in Thread] |