all messages for Emacs-related lists mirrored at yhetil.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 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.