From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: is there an existing negate function ? Date: Mon, 9 Mar 2009 23:36:54 -0700 Message-ID: <005701c9a14a$9a8614a0$0200a8c0@us.oracle.com> References: <20090309233840.GA8194@reforged> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1236667067 20835 80.91.229.12 (10 Mar 2009 06:37:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Mar 2009 06:37:47 +0000 (UTC) To: "'Mike Mattie'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 10 07:38:55 2009 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 1Lgvc6-0006Wg-8R for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Mar 2009 07:38:54 +0100 Original-Received: from localhost ([127.0.0.1]:36235 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lgvak-0005QQ-Bt for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Mar 2009 02:37:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LgvaN-0005QI-72 for help-gnu-emacs@gnu.org; Tue, 10 Mar 2009 02:37:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LgvaK-0005Q6-Po for help-gnu-emacs@gnu.org; Tue, 10 Mar 2009 02:37:05 -0400 Original-Received: from [199.232.76.173] (port=33467 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LgvaK-0005Q3-LB for help-gnu-emacs@gnu.org; Tue, 10 Mar 2009 02:37:04 -0400 Original-Received: from acsinet12.oracle.com ([141.146.126.234]:29378) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LgvaK-0002OP-6j for help-gnu-emacs@gnu.org; Tue, 10 Mar 2009 02:37:04 -0400 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by acsinet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n2A6ahJ3026786 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 10 Mar 2009 06:36:44 GMT Original-Received: from acsmt704.oracle.com (acsmt704.oracle.com [141.146.40.82]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n2A6awxn007278; Tue, 10 Mar 2009 06:36:59 GMT Original-Received: from dradamslap1 (/141.144.72.130) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 10 Mar 2009 06:36:53 +0000 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <20090309233840.GA8194@reforged> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 Thread-Index: AcmhEyclITyMxug5R6ytVARIxxN8KgANxjpA X-Source-IP: acsmt704.oracle.com [141.146.40.82] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A09020A.49B60A87.022D:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:62802 Archived-At: > is there an existing negate function ? something like this > that I have no found ? > > (defun negate ( value ) > "negate VALUE - Invert the boolean sense of VALUE > 0 -> 1 > 1 -> 0" > (if value nil t)) I'll bite. ;-) Is `not' (aka `null') what you mean? (not nil) -> t (not 'non-nil) -> nil