guile-user
[Top][All Lists]
Advanced

[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: Fri, 06 Oct 2006 00:35:05 +0100
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Kevin Ryde <address@hidden> writes:

> Neil Jerram <address@hidden> writes:
>>
>> Slightly confusingly, set-readline-prompt! does also set the default
>> prompt for an explicit `readline' call (1).  I think the overall
>> situation would be clearer if it didn't.
>
> It's not too terrible, may as well leave it alone in case anyone's
> nutted it out and is using it.

OK, agreed.

>> The bug which Jon has noted, about the effect of set-readline-prompt!
>> not lasting very long, is caused by the fact that Guile's REPL code,
>
> It might have been from only using `display' to show a prompt, which
> readline doesn't know and hence overwrites.

Good point.  I believe Jon's going to raise this (inability to do
readline starting from the column after the prompt) with the readline
people.

>> ... This code should instead
>> save the existing prompts and restore them afterwards
>
> But yes, that'd be a good thing.
>
>> Patch is below.
>
> Looks pretty reasonable.

Thanks; I've committed it now.

Regards,
     Neil





reply via email to

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