all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
To: emacs-devel@gnu.org
Subject: Re: Why are there two dolist?
Date: Wed, 12 Aug 2009 10:45:52 +0200	[thread overview]
Message-ID: <87ocqlifnj.fsf@lola.goethe.zz> (raw)
In-Reply-To: e01d8a50908111536x6000d791h7a3b529d1c974f3b@mail.gmail.com

Lennart Borgman <lennart.borgman@gmail.com> writes:

> On Wed, Aug 12, 2009 at 12:14 AM, Lennart
> Borgman<lennart.borgman@gmail.com> wrote:
>> And shouldn't they say that you do not have to intern/declare VAR?
>
> - There is one definition in subr.el and one in cl-macro.el. (I think
> I said this before.)
>
> - And I meant it should say that the variable is let bound inside
> dolist, ie there is a (let ((VAR ...) inside the defmacro dolist. That
> is not clear to from the doc string. The word "bound" there could
> equally well mean that (setq VAR ...) was used.

No.  Binding and setting a variable are fundamentally different things
and not interchangeable.  While there is a small bit of overlap in
current Emacs (because of its dynamic binding implementation), with
regard to language idioms the concepts are clearly separate, and with a
lexically binding Lisp variant (which we might get some day) the
semantics are even more separated.

-- 
David Kastrup





  reply	other threads:[~2009-08-12  8:45 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-11 22:14 Why are there two dolist? Lennart Borgman
2009-08-11 22:36 ` Lennart Borgman
2009-08-12  8:45   ` David Kastrup [this message]
2009-08-12  8:52     ` Lennart Borgman
2009-08-11 22:37 ` Miles Bader
2009-08-11 22:42   ` Lennart Borgman
2009-08-11 22:51     ` Miles Bader
2009-08-11 23:04       ` Lennart Borgman
2009-08-11 23:30         ` Harald Hanche-Olsen
2009-08-11 23:34           ` Miles Bader
2009-08-11 23:41             ` Lennart Borgman
2009-08-11 23:48               ` Miles Bader
2009-08-11 23:39           ` Lennart Borgman
2009-08-12  0:27             ` Harald Hanche-Olsen
2009-08-12  0:33               ` Lennart Borgman
2009-08-12  0:54                 ` Miles Bader
2009-08-12  0:59                   ` Lennart Borgman
2009-08-12  1:24                 ` Harald Hanche-Olsen

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ocqlifnj.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=emacs-devel@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.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.