GNU bug report logs - #12677
24.2.50; `nreverse' complains that ("foo") is not `listp'

Previous Next

Package: emacs;

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

Date: Thu, 18 Oct 2012 19:28:01 UTC

Severity: normal

Found in version 24.2.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 12677-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 12677-done <at> debbugs.gnu.org
Subject: Re: bug#12677: 24.2.50;
	`nreverse' complains that ("foo") is not `listp'
Date: Fri, 19 Oct 2012 10:19:47 -0400
>> My guess is that the code ended up doing something morally equivalent
>> to (nreverse '(1 2 . 3)).  Try it and you'll see a similarly confusing
>> error message.

> I understand your guess, but I think that might not be what was
> happening.  In the debugger I evaluated the variable and saw that its
> full value was just that singleton list.

Of course that's what you'd see because that's indeed the value *at that
point*, even though it had a different value before nreverse started
modifying the list.  By the time you get the error, the problem data
is gone.


        Stefan




This bug report was last modified 12 years and 272 days ago.

Previous Next


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