From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: Checking if all values of a list are true Date: Fri, 11 Jul 2008 18:38:59 +0200 Organization: Organization?!? Message-ID: <85lk08tly4.fsf@lola.goethe.zz> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1215794488 6247 80.91.229.12 (11 Jul 2008 16:41:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Jul 2008 16:41:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 11 18:42:16 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KHLhG-0007FN-4S for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Jul 2008 18:42:14 +0200 Original-Received: from localhost ([127.0.0.1]:40146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KHLgO-0004ql-EM for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Jul 2008 12:41:20 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder.news-service.com!hwmnpeer03.ams!news.highwinds-media.com!tudelft.nl!txtfeed2.tudelft.nl!eweka.nl!lightspeed.eweka.nl!npeer.de.kpn-eurorings.net!npeer-ng1.kpn.DE!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:7FQ7CG8RApCt3MuQT2YUP0Y/Ofs= Original-Lines: 19 Original-NNTP-Posting-Date: 11 Jul 2008 18:38:59 CEST Original-NNTP-Posting-Host: 213168b3.newsspool4.arcor-online.net Original-X-Trace: DXC=iWYRg=i`[\aEB; 5>eE0T7m4IUK\BH3YbdC6ahMee6<`CV`H8_`hhQd^9QSCVg3dOfOIC5DBZVJ9kFHiO3HYNOAb\mmGAMiOm9l Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: news.stanford.edu gnu.emacs.help:160093 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:55438 Archived-At: Nordlöw writes: > How do I check if all values of a list are true? > > This is my attempt: > (reduce 'and '(t t)) > > but I get the error: and (invalid-function and) > > (functionp 'and) > > gives true so why on earth doesn't this work? Special form. Try (not (memq nil '(t t))) -- David Kastrup, Kriemhildstr. 15, 44793 Bochum