GNU bug report logs -
#10969
24.0.94; Annoying warning for `pop'
Previous Next
Reported by: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
Date: Thu, 8 Mar 2012 06:45:01 UTC
Severity: minor
Found in version 24.0.94
Fixed in version 25.0.94
Done: Noam Postavsky <npostavs <at> users.sourceforge.net>
Bug is archived. No further changes may be made.
Full log
Message #20 received at 10969 <at> debbugs.gnu.org (full text, mbox):
Lars Magne Ingebrigtsen <larsi <at> gnus.org> writes:
> Thierry Volpiatto <thierry.volpiatto <at> gmail.com> writes:
>
>> Sorry, as always I don't understand your answer.
>
> :-)
>
>> (let ((lst '("a" "b" "c")))
>> (pop (nthcdr 1 lst)))
>> =>"b"
>>
>> What make any sense?
>
> It depends on what `pop' you're using. With the cl.el pop, you get this:
Sorry, I didn't specify which one I was using.
Of course I am using the CL one, as I always use at least the CL macros
in my lisp files.
BTW this is one more function that should be named cl-pop or something
similar.
> (setq lst '("a" "b" "c"))
> => ("a" "b" "c")
> (pop (nthcdr 1 lst))
> => "b"
> lst
> => ("a" "c")
>
> With the Emacs Lisp `pop', you get this:
>
> (setq lst '("a" "b" "c"))
> => ("a" "b" "c")
> (pop (nthcdr 1 lst))
> Debugger entered--Lisp error: (wrong-type-argument symbolp (nthcdr 1 lst))
--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
This bug report was last modified 9 years and 48 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.