unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* executing a lisp command as a hook
@ 2006-04-27 23:07 mmuurr
  2006-04-27 23:38 ` mmuurr
  2006-04-28  7:58 ` Steinar Bang
  0 siblings, 2 replies; 4+ messages in thread
From: mmuurr @ 2006-04-27 23:07 UTC (permalink / raw)


Hi all, I'm fairly new with emacs, so please bear with me if this is a
trivial question...

I have a hook variable that I'm trying to set.  It's a variable
included in the JDE (Java Development Environment) for Emacs, and the
goal is for me to be able to display some text in the echo area when I
switch from project to project between buffers.

There is a variable associated with each project called
jde-project-name.

When I jump to a new project, I simply want to be notified of this in
the echo area.

So I tried a simple elisp function:

(message jde-project-name)

This works when I execute the command from a scratch buffer using C-c
C-e, but if I include that command as is in the hook line (set using a
configure-variable interface) I get this is a response in the echo
area:

Invalid function: (message jde-project-name)

Can anyone tell me how to provide a way to call an elisp function from
a hook variable?

Thanks!

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-04-28  7:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-27 23:07 executing a lisp command as a hook mmuurr
2006-04-27 23:38 ` mmuurr
2006-04-28  0:33   ` Drew Adams
2006-04-28  7:58 ` Steinar Bang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).