From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Decebal Newsgroups: gmane.emacs.help Subject: Re: Extra info in modeline (tip and questions) Date: Tue, 28 Apr 2009 01:23:49 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <533fdd2a-8d26-47ce-9413-1bd2300ee2d1@s20g2000yqh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1240908205 15418 80.91.229.12 (28 Apr 2009 08:43:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Apr 2009 08:43:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 28 10:43:16 2009 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 1LyiuF-0007wE-Px for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Apr 2009 10:43:12 +0200 Original-Received: from localhost ([127.0.0.1]:35525 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LyiuF-00078v-Aj for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Apr 2009 04:43:11 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!u39g2000pru.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: 84.53.123.169 Original-X-Trace: posting.google.com 1240907029 30371 127.0.0.1 (28 Apr 2009 08:23:49 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 28 Apr 2009 08:23:49 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: u39g2000pru.googlegroups.com; posting-host=84.53.123.169; posting-account=K-cdeAoAAAD_0d505kUtHXJaT5LFIu-3 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; nl; rv:1.9.0.8) Gecko/2009032600 SUSE/3.0.8-1.1.1 Firefox/3.0.8,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:168797 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:64070 Archived-At: On 28 apr, 10:04, Decebal wrote: > On 15 apr, 15:14, Nikolaj Schumacher wrote: > > > > I also have another function where I need to input a boolean value > > > interactively. At the moment I am doing this with n and use 0 for > > > false and every other value for true. Is there a better way? > > > You can use `y-or-n-p' or `yes-or-no-p'. =A0But they don't have > > characters in the interactive form. =A0So you need to do this: > > > (interactive (list (y-or-n-p "bool: "))) > > I tried this (in a function test), but that gives: > =A0 =A0 test: Wrong type argument: stringp, t The problem was somewhere else in the function. '(interactive (list (y- or-n-p "bool: ")))' works as it should. The only problem is that I use more parameters. At the moment I have in the function: (interactive "r\nsHead: \nnKill Region? ") And the last should be the bool. How would I do that?