unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "Davide G. M. Salvetti" <salve@debian.org>,
	Romain Francoise <rfrancoise@debian.org>
Subject: Re: add-hook versus custom-set-variables
Date: Thu, 29 Dec 2005 14:12:40 -0500	[thread overview]
Message-ID: <873bkb4t14.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <21285.1135850735@olgas.newt.com> (Bill Wohler's message of "Thu, 29 Dec 2005 02:05:35 -0800")

>> The evaluation of a form (A B C) can follow the following two paths:
>> 
>> - if it's a macro:
>> 
>> (eval (macrocall A B C))
>> 
>> - if it's a function
>> 
>> (funcall A (eval B) (eval C))
>> 
>> Note how the function cannot delay the evaluation of its arguments.

> Thanks for the explanation. There's a lot of strange things in
> elisp--mostly around compilation and evaluation--that I don't understand
> and every little bit helps.  Maybe another reading of these sections in
> the elisp manual will make more sense now.

Actually this difference between macros and functions applies to 99% of
all languages.


        Stefan

  reply	other threads:[~2005-12-29 19:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-28 23:05 add-hook versus custom-set-variables Bill Wohler
2005-12-29  3:24 ` Stefan Monnier
2005-12-29  7:44   ` Bill Wohler
2005-12-29 16:14     ` Stefan Monnier
2005-12-29 10:05       ` Bill Wohler
2005-12-29 19:12         ` Stefan Monnier [this message]
2005-12-30  5:37           ` Tomas Zerolo
2005-12-30 20:52   ` Bill Wohler
2005-12-30 22:25     ` Stefan Monnier
2005-12-31 19:36       ` Richard M. Stallman
2005-12-31 19:47         ` David Kastrup
2005-12-31 21:00           ` Chong Yidong
2005-12-31 21:26             ` David Kastrup

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=873bkb4t14.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=rfrancoise@debian.org \
    --cc=salve@debian.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.
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).