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: An elisp question Date: Tue, 16 Sep 2008 13:51:24 -0700 Message-ID: <003001c9183d$fb7aa3c0$0200a8c0@us.oracle.com> References: <87zlm7alrq.fsf@gmail.com> 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 1221598294 1919 80.91.229.12 (16 Sep 2008 20:51:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2008 20:51:34 +0000 (UTC) To: "'Joost Kremers'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 16 22:52:31 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 1KfhX7-00009N-8E for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2008 22:52:26 +0200 Original-Received: from localhost ([127.0.0.1]:36171 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfhW5-0000Dw-AZ for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2008 16:51:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KfhVl-0000Dp-V7 for help-gnu-emacs@gnu.org; Tue, 16 Sep 2008 16:51:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KfhVk-0000DR-IK for help-gnu-emacs@gnu.org; Tue, 16 Sep 2008 16:51:01 -0400 Original-Received: from [199.232.76.173] (port=58687 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfhVk-0000DO-B9 for help-gnu-emacs@gnu.org; Tue, 16 Sep 2008 16:51:00 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]:13178) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KfhVj-0008E9-0J for help-gnu-emacs@gnu.org; Tue, 16 Sep 2008 16:50:59 -0400 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m8GKom5X031273; Tue, 16 Sep 2008 14:50:48 -0600 Original-Received: from acsmt703.oracle.com (acsmt703.oracle.com [141.146.40.81]) by rgmgw2.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id m8GKokHq019396; Tue, 16 Sep 2008 14:50:47 -0600 Original-Received: from dradamslap1 (/141.144.58.96) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 16 Sep 2008 20:50:46 +0000 X-Mailer: Microsoft Office Outlook 11 In-reply-to: Thread-Index: AckYPMPexdOXXR+cQuWuAGuEa1hVuAAAHC4g X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:57714 Archived-At: > > (defun my-test () > > (interactive) > > (if (equal (y-or-n-p "Yes or no? ") t) > > (if (y-or-n-p "Yes or no? ") > > will do just fine. > > > (foo) > > (message "hallo"))) Duh. (I didn't try to do more than answer his question.) Really, the right answer to the OP is to take a look at the manual "Emacs Lisp Introduction" (aka "An Introduction to Programming in Emacs Lisp") in Info (`C-h i').