From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel Subject: Re: Warning: `mapcar' called for effect; use `mapc' or `dolist' Date: Tue, 23 Oct 2007 06:39:12 -0400 Message-ID: References: <200710200643.l9K6h9gk021348@oogie-boogie.ics.uci.edu> <200710222007.l9MK7fRZ022140@oogie-boogie.ics.uci.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1193136007 22618 80.91.229.12 (23 Oct 2007 10:40:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Oct 2007 10:40:07 +0000 (UTC) Cc: dann@ics.uci.edu, ding@gnus.org, emacs-devel@gnu.org To: Reiner Steib Original-X-From: ding-owner+M13952@lists.math.uh.edu Tue Oct 23 12:40:08 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1IkHB8-0006nu-9o for ding-account@gmane.org; Tue, 23 Oct 2007 12:40:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1IkHAQ-0007tB-PS; Tue, 23 Oct 2007 05:39:22 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1IkHAO-0007sj-8o for ding@lists.math.uh.edu; Tue, 23 Oct 2007 05:39:20 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1IkHAI-000167-Go for ding@lists.math.uh.edu; Tue, 23 Oct 2007 05:39:20 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1IkHAB-0003vY-00 for ; Tue, 23 Oct 2007 12:39:08 +0200 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IkHAG-000411-Uv; Tue, 23 Oct 2007 06:39:12 -0400 In-reply-to: (message from Reiner Steib on Mon, 22 Oct 2007 22:55:29 +0200) X-Spam-Score: -2.2 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65452 gmane.emacs.devel:81543 Archived-At: > > (defun gnus-group-highlight-line () > > "Highlight the current line according to `gnus-group-highlight'." [...] > It seems that `mailp' is not used in that function. `mailp' is used implicitly through the variable `gnus-group-highlight' which is let-bound to `list'. `list' is used in the body of the let-form. > Adding a use for it makes the warning go away... If the byte compiler warns about that case, it is being too ambitious. Thus, if the value of an expression is stored into a variable, the compiler should consider the value "used". So if this warning really happens, it is a bug. Can it be reproduced?