[Top][All Lists]

[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:04:54 -0700 (PDT)
User-agent: G2/1.0

On 15 apr, 15:14, Nikolaj Schumacher <address@hidden> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]