[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to print an elisp function
From: |
Pascal J. Bourguignon |
Subject: |
Re: how to print an elisp function |
Date: |
Fri, 16 May 2014 11:34:07 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Joe Riel <joer@san.rr.com> writes:
> How can I print an elisp function?
>
> (print some-func) returns an error, void-variable some-func.
> How do I tell it to print the function assigned to some-func?
Then why don't you define that variable?
(let ((some-func (function sin)))
(print some-func))
Or define a function:
(defun some-func (x) (1+ x))
(print (function some-func))
--
__Pascal Bourguignon__
http://www.informatimago.com/
"Le mercure monte ? C'est le moment d'acheter !"