[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: readline eats previous text on line
From: |
Neil Jerram |
Subject: |
Re: readline eats previous text on line |
Date: |
Thu, 28 Sep 2006 08:49:28 +0100 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
Jon Wilson <address@hidden> writes:
> Hi Kevin,
>
>> (readline "foo: ")
>
> This gives an error.
I think what you need is (set-readline-prompt! "foo: "). The reason
it's done this way, instead of by a parameter to `readline', is that
when readline is activated it applies to the input port as a whole,
such that any attempt to read from the port (which doesn't usually
involve an explicit `readline' call) will use readline.
Regards,
Neil
Re: readline eats previous text on line, Jon Wilson, 2006/09/28