From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/51939 Path: main.gmane.org!not-for-mail From: Kevin Greiner Newsgroups: gmane.emacs.gnus.general Subject: Re: Oort Gnus v0.19 is released Date: Tue, 29 Apr 2003 00:45:54 -0500 Sender: ding-owner@lists.math.uh.edu Message-ID: References: <87brys6r9t.fsf@orebokech.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1051595120 31062 80.91.224.249 (29 Apr 2003 05:45:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 29 Apr 2003 05:45:20 +0000 (UTC) Original-X-From: ding-owner+M481@lists.math.uh.edu Tue Apr 29 07:45:19 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19ANvb-00084r-00 for ; Tue, 29 Apr 2003 07:45:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19ANwa-0005Tq-00; Tue, 29 Apr 2003 00:46:20 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19ANwM-0005Sl-00 for ding@lists.math.uh.edu; Tue, 29 Apr 2003 00:46:06 -0500 Original-Received: (qmail 81781 invoked by alias); 29 Apr 2003 05:46:05 -0000 Original-Received: (qmail 81776 invoked from network); 29 Apr 2003 05:46:05 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by sclp3.sclp.com with SMTP; 29 Apr 2003 05:46:05 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 19AO3j-0005IJ-00 for ; Tue, 29 Apr 2003 07:53:43 +0200 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 35 Original-NNTP-Posting-Host: manchester-suites-iaf1047853.cust-rtr.ameritech.net Original-X-Trace: quimby.gnus.org 1051595623 19724 68.23.64.46 (29 Apr 2003 05:53:43 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 29 Apr 2003 05:53:43 GMT In-Reply-To: (Jesper Harder's message of "Tue, 29 Apr 2003 00:30:51 +0200") User-Agent: Gnus/5.09002 (Oort Gnus v0.20) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:Mu61/YaM36k3eUf+aM6fLJgVzYU= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:51939 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:51939 Jesper Harder writes: > Simon Josefsson writes: > >> Jesper Harder writes: >> >>> There is a grain of truth in the warnings, i.e. that pop is a tiny bit >>> less efficient when we don't use the return value -- not that I think >>> anyone would notice the difference. >> >> The warning has been removed, but I'm not sure I agree it had even a >> tiny grain of truth in it -- the docstring for `pop' says "Remove and >> return the head of the list stored in PLACE.", and I assume this is >> what CL `pop' is supposed to do. Using it in that way in elisp should >> never generate a warning IMHO. > > I agree that the warning is too pedantic. But it's still true, > though. The part to notice in the docstring is > > and return the head of the list > > If we don't use the return value from pop, then > > (setq x (cdr x)) > > is obviously more efficient than > > (pop x) == (car (prog1 x (setq x (cdr x)))) Of course, the optimizer should (after printing the warning) remove the car and prog1 leaving just (setq x (cdr x)). That being said, I'll probably remove the pop macros in gnus-agent. Kevin