[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Extra info in modeline (tip and questions)
From: |
Decebal |
Subject: |
Re: Extra info in modeline (tip and questions) |
Date: |
Tue, 28 Apr 2009 01:23:49 -0700 (PDT) |
User-agent: |
G2/1.0 |
On 28 apr, 10:04, Decebal <CLDWester...@gmail.com> wrote:
> On 15 apr, 15:14, Nikolaj Schumacher <m...@nschum.de> 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'. But they don't have
> > characters in the interactive form. So you need to do this:
>
> > (interactive (list (y-or-n-p "bool: ")))
>
> I tried this (in a function test), but that gives:
> 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?
Re: Extra info in modeline (tip and questions), Decebal, 2009/04/15