From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Suvayu Ali Newsgroups: gmane.emacs.help Subject: Re: Another lisp question Date: Fri, 16 Apr 2010 10:58:22 -0700 Message-ID: <4BC8A53E.8000509@gmail.com> References: <4BC73B26.6050005@t-online.de> <4BC83078.9070003@t-online.de> <114E1EEC06534A028C516D3AB5689E40@us.oracle.com> <4BC890FF.5080803@t-online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1271440772 24147 80.91.229.12 (16 Apr 2010 17:59:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 16 Apr 2010 17:59: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 Apr 16 19:59:31 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1O2pp8-0006ye-Uh for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Apr 2010 19:59:27 +0200 Original-Received: from localhost ([127.0.0.1]:37857 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2pp8-0000SL-Gv for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Apr 2010 13:59:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2poF-0008RE-HC for help-gnu-emacs@gnu.org; Fri, 16 Apr 2010 13:58:31 -0400 Original-Received: from [140.186.70.92] (port=37273 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2poD-0008Ox-M4 for help-gnu-emacs@gnu.org; Fri, 16 Apr 2010 13:58:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2poC-00040h-4d for help-gnu-emacs@gnu.org; Fri, 16 Apr 2010 13:58:29 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:50241) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2poB-00040V-Vz for help-gnu-emacs@gnu.org; Fri, 16 Apr 2010 13:58:28 -0400 Original-Received: by wyg36 with SMTP id 36so1474037wyg.0 for ; Fri, 16 Apr 2010 10:58:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=gG3Vo6LA1wA5T3flObm6kalgsT2aihVO9KWT0phpP/0=; b=Vvc/KOsZ0THfIpaY5qH7bz4zqO7ohAhjCrP2u6xpw7UU0HLRHLBdeAy51Tho2atjkg OW34j8f4vF7NUenO0GGrSWki7Z7I0bcD9BHrahjOvAYqJ04T4GNjzF3XYl6rH+kC/d9g bqW8qS5Cm3RzlzkQacyGvxUrJZRicNgefQbx4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=nxuezAAocqVbjRw/8+3VDdJB7a/NHcz0JYXVVWUu1qEN5OymZYg7ZW0xP0F2SspHSw k0oDb4zGBHyWqI2kB+WF7l+biDFj3uJMfx+UqtCMFjMQTjHuUBxgEUOjcYcW+DLI00No TBVQLG7XkZeHtoc2AJna6fsBlE67lYnr+cC+Y= Original-Received: by 10.216.183.205 with SMTP id q55mr2323307wem.172.1271440706878; Fri, 16 Apr 2010 10:58:26 -0700 (PDT) Original-Received: from bhishma.homelinux.net (d207-6-164-45.bchsia.telus.net [207.6.164.45]) by mx.google.com with ESMTPS id r29sm22717507wbv.15.2010.04.16.10.58.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 16 Apr 2010 10:58:26 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc11 Lightning/1.0b2pre Thunderbird/3.0.4 In-Reply-To: <4BC890FF.5080803@t-online.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:72709 Archived-At: On Friday 16 April 2010 09:31 AM, Klaus Jantzen wrote: > Drew Adams wrote: >> (defun mytest (n) >> " Test" >> ; (interactive "nEnter number: ") >> (interactive (list (read-number "Enter number: "))) >> (message "%d was entered" n)) >> >> With both versions of the interactive statement I have the >> same effect: the prompt comes back as long as I do not enter anything. >> >> I am running emacs22 on Debian lenny. >> Do I need a special setting to achive what I want? >> >> You said you wanted to use the default value if the user hit Return >> with typing >> anything first. For that, use (read-number "Number: " MY-DEFAULT), as I >> suggested before. >> >> > OK; I did not really understand why you had that 42 in your code. > It works. > Thank you. I believe its the answer to the ultimate question? ;) -- Suvayu Open source is the future. It sets us free.