From: "Pascal J. Bourguignon" <pjb@informatimago.com>
To: help-gnu-emacs@gnu.org
Subject: Re: how to print an elisp function
Date: Fri, 16 May 2014 11:34:07 +0200 [thread overview]
Message-ID: <87d2fejcds.fsf@kuiper.lan.informatimago.com> (raw)
In-Reply-To: mailman.1441.1400220416.1147.help-gnu-emacs@gnu.org
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 !"
next parent reply other threads:[~2014-05-16 9:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1441.1400220416.1147.help-gnu-emacs@gnu.org>
2014-05-16 9:34 ` Pascal J. Bourguignon [this message]
2014-05-16 6:06 how to print an elisp function Joe Riel
2014-05-16 10:18 ` Nicolas Richard
2014-05-16 13:42 ` Joe Riel
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d2fejcds.fsf@kuiper.lan.informatimago.com \
--to=pjb@informatimago.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.
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).