unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* readline (again...)
@ 2002-10-13 15:59 Orm Finnendahl
  2002-10-13 18:59 ` Neil Jerram
  0 siblings, 1 reply; 2+ messages in thread
From: Orm Finnendahl @ 2002-10-13 15:59 UTC (permalink / raw)


Hi all,

sorry to bug you again, but I experience a strange thing trying to use
readline within an inferior guile process in emacs: When loading the
readline modules in a console, the behaviour of readline is the way
it's expected, activating it from within an inferior-scheme buffer in
emacs makes guile loose its prompt (<guile>) and no history or any of
readlines features seems to be available.

What am I missing?

--
Orm


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: readline (again...)
  2002-10-13 15:59 readline (again...) Orm Finnendahl
@ 2002-10-13 18:59 ` Neil Jerram
  0 siblings, 0 replies; 2+ messages in thread
From: Neil Jerram @ 2002-10-13 18:59 UTC (permalink / raw)
  Cc: bug-guile

>>>>> "Orm" == Orm Finnendahl <finnendahl@folkwang-hochschule.de> writes:

    Orm> Hi all,
    Orm> sorry to bug you again, but I experience a strange thing trying to use
    Orm> readline within an inferior guile process in emacs: When loading the
    Orm> readline modules in a console, the behaviour of readline is the way
    Orm> it's expected, activating it from within an inferior-scheme buffer in
    Orm> emacs makes guile loose its prompt (<guile>) and no history or any of
    Orm> readlines features seems to be available.

    Orm> What am I missing?

It doesn't really make sense to activate readline when running within
Emacs, as Emacs provides its own mechanisms for editing, recalling
previous commands, and so on.  To activate readline only when it makes
sense, I recommend using the following code in your .guile:

(if (isatty? (current-input-port))
    (begin
      (use-modules (ice-9 readline))
      (activate-readline)))

Regards,
        Neil



_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-13 18:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-13 15:59 readline (again...) Orm Finnendahl
2002-10-13 18:59 ` Neil Jerram

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).