This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: questions?


Andrew Archibald <aarchiba@undergrad.math.uwaterloo.ca> writes:

> ; 1. The Emacs interface that was recently included in the snapshot
> ; obviously needs some Emacs-side support.  What would that be?  Also,
> ; is there a way to disable the readline support short of activating the
> ; Emacs support or hacking boot-9.scm?  'Cause I was perfectly
> ; comfortable in Ilisp, but the above two new things mess it up (would
> ; be great to check (isatty? (current-output-port)) before turning on
> ; readline, for example :).
> 
> Oh dear, is the readline support actually enabled in a guile
> interpreter?  I just wrote a function (readline-repl).

The current implementation is based upon yours.  But the blame for any
inconveniences is upon me.

> You're right, it shouldn't be called from a non-tty.

Fixed now.

> Maybe it shouldn't be called at all...

I think it should be.

It is useful enough to be always enabled (except when lacking support
for it or not using a regular tty).  If doubt that this will lead to
problems.

/mdj