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

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

bug#10969: 24.0.94; Annoying warning for `pop'


From: Lars Magne Ingebrigtsen
Subject: bug#10969: 24.0.94; Annoying warning for `pop'
Date: Fri, 09 Mar 2012 09:46:58 +0100
User-agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.93 (gnu/linux)

Thierry Volpiatto <address@hidden> 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:

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


-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





reply via email to

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