From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: question to `case' Date: Wed, 23 Mar 2005 08:07:40 -0500 Organization: Symantec Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1111583602 21603 80.91.229.2 (23 Mar 2005 13:13:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 Mar 2005 13:13:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 23 14:13:16 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DE5er-0001Lf-Mt for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Mar 2005 14:12:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DE5wE-0006Ju-Hy for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Mar 2005 08:30:22 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 23 Mar 2005 07:07:40 -0600 Original-Newsgroups: gnu.emacs.help Mail-Copies-To: nobody User-Agent: MT-NewsWatcher/3.4 (PPC Mac OS X) X-Copies-To: never Original-Lines: 21 Original-NNTP-Posting-Host: 24.128.234.87 Original-X-Trace: sv3-yvVZzm31MCgsGk6m/iKI26hpRuDi2oPh2yYmPv2SamCP4hAq2AdqZR1nyBILjrwt8egGJL1x8h1QClP!8JmoO5dlpovIrBoUfa2uCq6pPucqqz2fDQNESoW1Mpj71PvcZaNKIcOzXZ6bAM4xVxZu9IF0Rh4s!0xe3EvAlnuk= Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.31 Original-Xref: shelby.stanford.edu gnu.emacs.help:129558 Original-To: help-gnu-emacs@gnu.org 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 X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: news.gmane.org gmane.emacs.help:25109 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25109 In article , Klaus Berndl wrote: > Can i use variables for the keys of the KEY-CLAUSES? No. The keys are actually a list of constants. If it were evaluated, a list would be treated as a function call. > Of course the notation above can not work but my question is: What is right > notation? Use 'cond' instead: (let ((type (tree-node->type node))) (cond (eq type my-bucket-node-type) ...) (eq type my-tag-node-type) ...))) -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***