bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18555: 24.4.50; butlast and nbutlast doesn't handle improper lists


From: Andreas Schwab
Subject: bug#18555: 24.4.50; butlast and nbutlast doesn't handle improper lists
Date: Thu, 25 Sep 2014 09:21:50 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Leo Liu <address@hidden> writes:

>   (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?

Don't do that then.

Andreas.

-- 
Andreas Schwab, SUSE Labs, address@hidden
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."





reply via email to

[Prev in Thread] Current Thread [Next in Thread]