From: William Case <billlinux@rogers.com>
To: EMACS List <help-gnu-emacs@gnu.org>
Subject: Elisp Tutorial dumb question -- but I thought I better doublecheck ??
Date: Tue, 24 Apr 2007 12:23:01 -0400 [thread overview]
Message-ID: <1177431781.3373.8.camel@CASE> (raw)
Hi;
I am working my way through the elisp tutorial
at :http://www.linuxselfhelp.com/gnu/emacs-lisp-intro/html_mono/emacs-lisp-intro.html#Writing%20Defuns
Section 3.3 on defuns gives an algorithm for the basic defun as:
defun
(defun function-name (arguments ... )
"optional-documentation ..."
(interactive argument-passing-info)
body ... )
and later gives an algorithm for the lambda anonymous function as:
C.4.3 A lambda Expression: Useful Anonymity
(lambda (arg-variables...)
[documentation-string]
[interactive-declaration]
body-forms...)
The differences seem trivial, but can I re-write the lambda algorithm in
terms of the defun algorithm for myself such that:
lambda
(lambda (arguments ... )
"optional-documentation ..."
(interactive argument-passing-info)
body ... )
or would I be missing some significant difference ?
--
Regards Bill
next reply other threads:[~2007-04-24 16:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-24 16:23 William Case [this message]
2007-04-25 8:20 ` Elisp Tutorial dumb question -- but I thought I better doublecheck ?? Maciej Katafiasz
[not found] <mailman.2465.1177432345.7795.help-gnu-emacs@gnu.org>
2007-04-25 4:59 ` Barry Margolin
2007-04-25 6:14 ` Tim X
2007-04-25 8:26 ` Maciej Katafiasz
[not found] ` <mailman.2497.1177490263.7795.help-gnu-emacs@gnu.org>
2007-04-25 11:43 ` Tim X
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=1177431781.3373.8.camel@CASE \
--to=billlinux@rogers.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).