From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: JD Smith Newsgroups: gmane.emacs.devel Subject: push and pop Date: Fri, 07 Jan 2005 11:21:53 -0700 Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1105122258 15279 80.91.229.6 (7 Jan 2005 18:24:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Jan 2005 18:24:18 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 07 19:23:57 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CmymC-0005bf-00 for ; Fri, 07 Jan 2005 19:23:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CmyxY-000452-NA for ged-emacs-devel@m.gmane.org; Fri, 07 Jan 2005 13:35:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CmyxM-00043E-Rt for emacs-devel@gnu.org; Fri, 07 Jan 2005 13:35:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CmyxL-00042Q-DR for emacs-devel@gnu.org; Fri, 07 Jan 2005 13:35:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CmyxL-00041u-5c for emacs-devel@gnu.org; Fri, 07 Jan 2005 13:35:27 -0500 Original-Received: from [80.91.229.2] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CmykS-0006fa-2g for emacs-devel@gnu.org; Fri, 07 Jan 2005 13:22:08 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CmykR-0005Iz-00 for ; Fri, 07 Jan 2005 19:22:07 +0100 Original-Received: from turtle.as.arizona.edu ([128.196.208.207]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Jan 2005 19:22:07 +0100 Original-Received: from jdsmith by turtle.as.arizona.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Jan 2005 19:22:07 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 22 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: turtle.as.arizona.edu User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:32012 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32012 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