unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#18555: 24.4.50; butlast and nbutlast doesn't handle improper lists
@ 2014-09-25  4:05 Leo Liu
  2014-09-25  7:21 ` Andreas Schwab
  2019-09-30  2:39 ` Stefan Kangas
  0 siblings, 2 replies; 3+ messages in thread
From: Leo Liu @ 2014-09-25  4:05 UTC (permalink / raw)
  To: 18555


  (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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-09-30  2:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-25  4:05 bug#18555: 24.4.50; butlast and nbutlast doesn't handle improper lists Leo Liu
2014-09-25  7:21 ` Andreas Schwab
2019-09-30  2:39 ` Stefan Kangas

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).