From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65506 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: Warning: `mapcar' called for effect; use `mapc' or `dolist' Date: Wed, 31 Oct 2007 21:30:23 +0100 Message-ID: References: <200710200643.l9K6h9gk021348@oogie-boogie.ics.uci.edu> <200710222007.l9MK7fRZ022140@oogie-boogie.ics.uci.edu> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193862684 2570 80.91.229.12 (31 Oct 2007 20:31:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Oct 2007 20:31:24 +0000 (UTC) Cc: dann@ics.uci.edu, ding@gnus.org, emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 31 21:31:25 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1InKDe-0007Rm-8W for ged-emacs-devel@m.gmane.org; Wed, 31 Oct 2007 21:31:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1InKDU-0007CB-Ip for ged-emacs-devel@m.gmane.org; Wed, 31 Oct 2007 16:31:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1InKDQ-00078Z-2L for emacs-devel@gnu.org; Wed, 31 Oct 2007 16:31:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1InKDN-00074X-VQ for emacs-devel@gnu.org; Wed, 31 Oct 2007 16:31:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1InKDN-00074L-SH for emacs-devel@gnu.org; Wed, 31 Oct 2007 16:31:01 -0400 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1InKDH-0000PQ-FN; Wed, 31 Oct 2007 16:30:56 -0400 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by mail.uni-ulm.de (8.14.1/8.14.1) with ESMTP id l9VKUqcE013009; Wed, 31 Oct 2007 21:30:53 +0100 (MET) Original-Received: from localhost (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 6AE8F12C5B; Wed, 31 Oct 2007 21:30:50 +0100 (CET) X-Face: .*T0'iU(sujq_j9\J>-d4fg; N/1++U#U$_5ii6k.=|"-n'?5O:Hyz&wi'-!I~,}7~GgT=0S /&-R5sbkNy5+Xo1y{Tw2KKxi@Xh"g@]Qc|.U<*]WDd)qvGowFDvfU1F]{EDho:7P0@|oOD=Bc{K4?> WP68K[Mx:}=`ZT'6g4'f+g?;`vri2!)xGy}3:=l'(/Cea0l4lo^H5#@/Z3ev Mail-Followup-To: rms@gnu.org, dann@ics.uci.edu, ding@gnus.org, emacs-devel@gnu.org In-Reply-To: (Richard Stallman's message of "Wed, 31 Oct 2007 03:46:58 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-DCC-HP_X86_64_8CPU-Metrics: poseidon 1245; Body=4 Fuz1=4 Fuz2=4 X-Virus-Scanned: by amavisd-new X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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: news.gmane.org gmane.emacs.devel:82249 gmane.emacs.gnus.general:65506 Archived-At: On Wed, Oct 31 2007, Richard Stallman wrote: > > > (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? I can't reproduce it. I just updated and bootstrapped. There was no warning for `gnus-group.el': Compiling [...]/cvs-HEAD/emacs/lisp/./gnus/gnus-group.el Wrote [...]/cvs-HEAD/emacs/lisp/gnus/gnus-group.elc Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/