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

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

Re: help with c-mode-common-hook


From: Kai Grossjohann
Subject: Re: help with c-mode-common-hook
Date: Thu, 03 May 2007 16:09:23 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.97 (gnu/linux)

Hadron <address@hidden> writes:

> I'm not sure what ellided means. But how come it works in my direct
> add-hook then? The "old" way was working before (famous last words :-;).

The "direct" method works because you have different code in that
case.

To make the "direct" method fail, you need to do this:

(add-hook 'c-mode-common-hook 
          (lambda ()
            (lambda ()
              ...same code as before)))

As you can see, there is one lambda too many.

Kai






reply via email to

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