emacs-devel
[Top][All Lists]
Advanced

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

push and pop


From: JD Smith
Subject: push and pop
Date: Fri, 07 Jan 2005 11:21:53 -0700
User-agent: Pan/0.14.2.91 (As She Crawled Across the Table)


The macros "push" and "pop" in `subr' don't do the same thing as the push
and pop in `cl'.  This means that if you use:

 (eval-when-compile (require 'cl))

in your code, the behavior will change depending on whether the compiled
version is loaded (cl version), or you are interactively debugging (subr
version).  An example of a semantic which will fail with the subr version
but not the cl version:

 (setq ov (pop (cdr ov-list)))

which requires a list argument to pop, instead of the cdr of a list.

Any suggestions on how to work around this (other than the obvious "don't
do that")?

Thanks,

JD





reply via email to

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