[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
add-hook
From: |
Sebastian Tennant |
Subject: |
add-hook |
Date: |
Wed, 06 Jun 2007 14:26:35 +0300 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) |
Hi all,
Am I right in thinking this is OK:
(add-hook 'foo-hook 'bar-function 'baz-function ...)
And this is OK:
(add-hook 'foo-hook (lambda () ...))
But this is not:
(add-hook 'foo-hook 'bar-function (lambda () ...))
That is to say, single functions passed via add-hook are added to a
list the contents of which are evaluated in turn, but a lambda
function passed via add-hook is evaluated as it stands, (no list of
functions is created) so there can be only one lambda function passed
via add-hook at any one time?
Sebastian
- add-hook,
Sebastian Tennant <=
- Re: add-hook, Sebastian Tennant, 2007/06/06
- Message not available