unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Macro vs Function
@ 2006-04-12  8:22 Herbert Euler
  2006-04-12  9:07 ` David Kastrup
  0 siblings, 1 reply; 26+ messages in thread
From: Herbert Euler @ 2006-04-12  8:22 UTC (permalink / raw)


Hello,

After reading defmacro and eval in eval.c, I conclude that, in
Emacs Lisp, if I substitute "defmacro" at the beginning of
definition of a macro with "defun" and quote each argument in the
call the behavior of code will not be altered.  Is this correct?
And, is it correct for other Lisp implementations?

Thanks in advance.

Regards,
Guanpeng Xu

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

^ permalink raw reply	[flat|nested] 26+ messages in thread
* Re: Macro vs Function
@ 2006-04-12 12:05 Herbert Euler
  2006-04-12 12:13 ` David Kastrup
  0 siblings, 1 reply; 26+ messages in thread
From: Herbert Euler @ 2006-04-12 12:05 UTC (permalink / raw)


>From: David Kastrup <dak@gnu.org>
>To: "Herbert Euler" <herberteuler@hotmail.com>
>CC: emacs-devel@gnu.org
>Subject: Re: Macro vs Function
>Date: Wed, 12 Apr 2006 13:19:17 +0200
>
>Macro arguments are _never_ evaluated.  They are passed quoted
>into the macro, the macro gets executed, and the return value of
>the macro gets evaluated.

This verifies my hypothesis.  Thanks.

Regards,
Guanpeng Xu

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2006-04-13  2:17 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-12  8:22 Macro vs Function Herbert Euler
2006-04-12  9:07 ` David Kastrup
2006-04-12  9:17   ` Herbert Euler
2006-04-12  9:24     ` David Kastrup
2006-04-12  9:39       ` Herbert Euler
2006-04-12  9:53         ` David Kastrup
2006-04-12 10:39           ` Herbert Euler
2006-04-12 11:14             ` Andreas Schwab
2006-04-12 11:56               ` Herbert Euler
2006-04-12 12:08                 ` Herbert Euler
2006-04-12 12:19                   ` David Kastrup
2006-04-12 13:37                     ` Herbert Euler
2006-04-12 13:52                       ` David Kastrup
2006-04-12 15:13                         ` Herbert Euler
2006-04-12 15:26                           ` Stuart D. Herring
2006-04-12 15:54                             ` Herbert Euler
2006-04-12 15:29                           ` David Kastrup
2006-04-12 15:56                             ` Herbert Euler
2006-04-12 16:14                               ` Herbert Euler
2006-04-12 16:59                               ` David Kastrup
2006-04-13  2:17                                 ` Herbert Euler
2006-04-12 12:12                 ` David Kastrup
2006-04-12 11:19             ` David Kastrup
  -- strict thread matches above, loose matches on Subject: below --
2006-04-12 12:05 Herbert Euler
2006-04-12 12:13 ` David Kastrup
2006-04-12 12:17   ` Herbert Euler

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).