From: "Drew Adams" <drew.adams@oracle.com>
To: "'Stefan Monnier'" <monnier@iro.umontreal.ca>
Cc: 12677-done@debbugs.gnu.org
Subject: bug#12677: 24.2.50; `nreverse' complains that ("foo") is not `listp'
Date: Thu, 18 Oct 2012 18:47:23 -0700 [thread overview]
Message-ID: <7D8BA66E4D4345B7B791FCBC591A8AF3@us.oracle.com> (raw)
In-Reply-To: <jwvhapre1ei.fsf-monnier+emacs@gnu.org>
> 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.
But I'm OK with your closing this, as I cannot repro it from emacs -Q and it
does not interfere with my code.
> The reason is that by the time you get to the error, the list has
> already been "nreversed" by side-effect, so the arg (which
> still points to the cons cell which used to be the first element
> of the line) now still points to the same cons-cell, but that
> cons-cell's cdr has been set to nil because it was to become the
> last element of the returned list.
Do I understand correctly that a true list with a single element should not
present such a problem?
> I've installed a change in trunk which makes the above error
> include the problematic non-nil tail, rather than the first
> element who looks confusingly normal.
Sounds good.
next prev parent reply other threads:[~2012-10-19 1:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-18 19:25 bug#12677: 24.2.50; `nreverse' complains that ("foo") is not `listp' Drew Adams
2012-10-19 0:55 ` Stefan Monnier
2012-10-19 1:47 ` Drew Adams [this message]
2012-10-19 14:19 ` Stefan Monnier
2012-10-19 14:24 ` Drew Adams
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=7D8BA66E4D4345B7B791FCBC591A8AF3@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=12677-done@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.