[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: equivalent of make-local-variable for defun?
From: |
Paul R |
Subject: |
Re: equivalent of make-local-variable for defun? |
Date: |
Mon, 03 Nov 2008 18:16:52 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
jrwats> Is there a way to define a function but local to the current
jrwats> buffer as when you define a local variable in
jrwats> make-local-variable?
I don't know very well how buffer-local variables work, but I don't
think you can locally bind an elisp function. A workaround can be to use
a local variable, then set it to a lambda expression, then call the
function with funcall.
--
Paul