all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: troelskn <troelskn@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Assign a function to a variable, and invoke it
Date: Mon, 30 Jul 2007 15:22:55 -0700	[thread overview]
Message-ID: <1185834175.653370.242000@22g2000hsm.googlegroups.com> (raw)

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?

             reply	other threads:[~2007-07-30 22:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-30 22:22 troelskn [this message]
2007-07-30 22:52 ` Assign a function to a variable, and invoke it troelskn
2007-07-30 22:56   ` Joost Kremers
2007-07-30 22:56 ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1185834175.653370.242000@22g2000hsm.googlegroups.com \
    --to=troelskn@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.