help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs and buffer switching


From: Kevin Rodgers
Subject: Re: emacs and buffer switching
Date: Wed, 06 Dec 2006 13:57:56 -0700
User-agent: Thunderbird 1.5.0.8 (Windows/20061025)

Hadron Quark wrote:
Kevin Rodgers <address@hidden> writes:
(defun ecb-window-configuration ()
  (when (derived-mode-p 'c-mode)
    ;; activate ECB here
    ))

(add-hook 'window-configuration-change-hook 'ecb-window-configuration)

Thanks Kevin : almost there.

ecb activates, but I get (instead of the c file in the right hand buffer):

Warning: `semantic-before-toplevel-bovination-hook' is an obsolete variable;
    use `semantic--before-fetch-tags-hook' instead.
Error: Wrong type argument: window-live-p, #<window 53>


Advice on how to track down the problem?

(setq debug-on-error t)

Also, what code to turn off ecb if its not a c-mode derivative? Some
form of "else" in the code above which then calls ecb-deactivate()?

Isn't it just

(if (derived-mode-p 'c-mode)
    (ecb-activate)
  (ecb-deactivate))

--
Kevin





reply via email to

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