From: Leo Liu <sdl.web@gmail.com>
To: 18555@debbugs.gnu.org
Subject: bug#18555: 24.4.50; butlast and nbutlast doesn't handle improper lists
Date: Thu, 25 Sep 2014 12:05:49 +0800 [thread overview]
Message-ID: <m3ppeke44i.fsf@gmail.com> (raw)
(nbutlast '(1 2 . 3))
throws an error due to `length' which can be fixed
by using safe-length instead.
(butlast '(1 2 . 3))
still throws an error due to copy-sequence not taking
improper list.
What is the right thing to do?
Leo
next reply other threads:[~2014-09-25 4:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-25 4:05 Leo Liu [this message]
2014-09-25 7:21 ` bug#18555: 24.4.50; butlast and nbutlast doesn't handle improper lists Andreas Schwab
2019-09-30 2:39 ` Stefan Kangas
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=m3ppeke44i.fsf@gmail.com \
--to=sdl.web@gmail.com \
--cc=18555@debbugs.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 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).