unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Assign a function to a variable, and invoke it
@ 2007-07-30 22:22 troelskn
  2007-07-30 22:52 ` troelskn
  2007-07-30 22:56 ` Drew Adams
  0 siblings, 2 replies; 4+ messages in thread
From: troelskn @ 2007-07-30 22:22 UTC (permalink / raw)
  To: help-gnu-emacs

I'm trying to assign an existing function to a variable, so I can call
that variable, rather than the actual function directly. The aim is to
have a single point, where I can change behaviour for my module. The
code I have so far is:

(defvar my-browse-url 'browse-url)
...
(my-browse-url "http://example.com")

I suppose that functions and variables have different namespaces in
elisp? How do I invoke the function, which my-browse-url points to?

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

end of thread, other threads:[~2007-07-30 22:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-30 22:22 Assign a function to a variable, and invoke it troelskn
2007-07-30 22:52 ` troelskn
2007-07-30 22:56   ` Joost Kremers
2007-07-30 22:56 ` Drew Adams

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).