From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mirko Newsgroups: gmane.emacs.help Subject: Re: how to use "if" in lisp Date: Thu, 15 Nov 2007 10:08:04 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <878x4zfkwv.fsf@supermath.math.umn> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1195152048 9702 80.91.229.12 (15 Nov 2007 18:40:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Nov 2007 18:40:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 15 19:40:52 2007 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 1Isjdw-0004wP-WF for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Nov 2007 19:40:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Isjdk-0006Hy-6i for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Nov 2007 13:40:36 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!b32g2000hsa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: 208.218.238.20 Original-X-Trace: posting.google.com 1195150085 22423 127.0.0.1 (15 Nov 2007 18:08:05 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 15 Nov 2007 18:08:05 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b32g2000hsa.googlegroups.com; posting-host=208.218.238.20; posting-account=yS7ZzQoAAACbDncxMo9UeCyhsLtcDWPM User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9,gzip(gfe),gzip(gfe) Content-Disposition: inline Original-Xref: shelby.stanford.edu gnu.emacs.help:153838 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:49269 Archived-At: On Nov 15, 1:01 pm, Teng Wang wrote: > Hi there, > > I just began to learn lisp a couple of weeks ago. It is easy to use, > but sometimes it is really hard to know what variables are in > lisp. And today I want to write a code doing the function as below: > > (if (_the major mode is something_) > (some function) > (another funcion)) > > But I don't know how to write down the condition. > > Any suggestions. Thank you all in advance. > > --- > > Teng The variable mode-name contains the name of the major mode (as a string) Mirko