From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teng Wang Newsgroups: gmane.emacs.help Subject: Re: how to use "if" in lisp Date: Thu, 15 Nov 2007 13:16:41 -0600 Message-ID: <87lk8zco9y.fsf@supermath.math.umn> References: <878x4zfkwv.fsf@supermath.math.umn> <87y7czgy3r.fsf@W0053328.mgh.harvard.edu> <87lk8zgxrx.fsf@W0053328.mgh.harvard.edu> <874pfnfhwu.fsf@supermath.math.umn> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1195247552 6858 80.91.229.12 (16 Nov 2007 21:12:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Nov 2007 21:12:32 +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 Nov 16 22:12:38 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 1It8UL-000495-BP for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Nov 2007 22:12:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1It8U8-0002cf-6U for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Nov 2007 16:12:20 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!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: Thu, 15 Nov 2007 13:18:03 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:rlCjEdQDPV2Y6kKTjV4yv/WGsWs= Original-Lines: 14 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 75.72.169.121 Original-X-Trace: sv3-LJhuedq+tzXcFUUl+m3S+FtwNA6uHS528iBLn7RPF4pN8G3TEaBw5S5rISYMXEpapWmtYMiz/w79pNE!NkKn3tIbF0rHFPhX0xl147lGglIf05EBUDQioFSgaqWjSwCzN/SncH2BQbbGNGfrzkrKu7nNzzMi!mn6RwsQcQZqeo50= 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.35 Original-Xref: shelby.stanford.edu gnu.emacs.help:153844 X-Mailman-Approved-At: Fri, 16 Nov 2007 16:07:29 -0500 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:49292 Archived-At: Thank you for all your help. I think I get a workaround. I can just (add-hook '_somemode-hook_ (my_function) ) This will do my job. --- Teng