From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65500 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: Wed, 31 Oct 2007 03:46:58 -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 1193816896 4859 80.91.229.12 (31 Oct 2007 07:48:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Oct 2007 07:48:16 +0000 (UTC) Cc: dann@ics.uci.edu, ding@gnus.org, emacs-devel@gnu.org To: Reiner Steib Original-X-From: ding-owner+M13995@lists.math.uh.edu Wed Oct 31 08:48:18 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 1In8JF-0004yb-3R for ding-account@gmane.org; Wed, 31 Oct 2007 08:48:17 +0100 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 1In8IA-0001Fk-Ca; Wed, 31 Oct 2007 02:47:10 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1In8I7-0001FT-73 for ding@lists.math.uh.edu; Wed, 31 Oct 2007 02:47:07 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1In8I1-0004hC-CU for ding@lists.math.uh.edu; Wed, 31 Oct 2007 02:47:07 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1In8Hv-0002mb-00 for ; Wed, 31 Oct 2007 08:46:55 +0100 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1In8Hy-0000P7-WB; Wed, 31 Oct 2007 03:46:59 -0400 In-Reply-To: (message from Reiner Steib on Mon, 22 Oct 2007 22:55:29 +0200) X-Spam-Score: -2.4 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65500 gmane.emacs.devel:82193 [I sent this message a week ago but did not get a response.] > > (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?