all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.