GNU bug report logs - #79320
30.2; Doc of `dolist'

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Tue, 26 Aug 2025 19:51:02 UTC

Severity: minor

Found in version 30.2

Full log


Message #17 received at 79320 <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 79320 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>
Subject: Re: bug#79320: 30.2; Doc of `dolist'
Date: Tue, 02 Sep 2025 15:35:50 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> Where does the documentation say that the first argument to dolist
> _cannot_ be a dynamically-bounded variable?

It's not absolutely trivial what the semantics are.  It could be that
dolist always created a fresh lexical variable VAR of the same name
(although the docstring rather suggests that dolist directly uses the
given variable, and not some new variable of the same name of any kind).

Anyway, like Richard I think it could be good to add a hint nonetheless
because the fact and its consequences are probably not obvious to a lot
of users.


Michael.




This bug report was last modified 6 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.