unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Neil Jerram <neil@ossau.uklinux.net>
Cc: guile-devel@gnu.org
Subject: Re: Setting the readline prompt ...
Date: 08 Jan 2003 21:35:07 +0000	[thread overview]
Message-ID: <m365szfhpw.fsf@laruns.ossau.uklinux.net> (raw)
In-Reply-To: <m3bs2rfitm.fsf@laruns.ossau.uklinux.net>

>>>>> "Neil" == Neil Jerram <neil@ossau.uklinux.net> writes:

    Neil> You can see the effect of set-readline-prompt! like this:

    guile> (begin (set-readline-prompt! "1> " "2> ") (readline))
    1> something
    Neil> "something"
    guile> (begin (set-readline-prompt! "1> " "2> ") (read))
    2> something
    Neil> something

Er... except that there's a bug for which I'm just about the commit
the fix:

Index: readline.c
===================================================================
RCS file: /cvsroot/guile/guile/guile-core/guile-readline/readline.c,v
retrieving revision 1.45
diff -u -r1.45 readline.c
--- readline.c  3 Nov 2002 22:09:20 -0000       1.45
+++ readline.c  8 Jan 2003 21:31:32 -0000
@@ -184,7 +184,7 @@
                      SCM_EOL);
     }
 
-  if (!((SCM_UNBNDP (outp) && SCM_OPINFPORTP (scm_cur_outp))
+  if (!((SCM_UNBNDP (outp) && SCM_OPOUTFPORTP (scm_cur_outp))
        || SCM_OPOUTFPORTP (outp)))
     {
       --in_readline;

Marius/Rob, should this go into the stable branch as well?

The symptom without this fix is:

guile> (readline)
ERROR: In procedure %readline:
ERROR: Output port is not open or not a file port
ABORT: (misc-error)

        Neil



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


  reply	other threads:[~2003-01-08 21:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-07 18:42 Setting the readline prompt rm
2003-01-08 18:04 ` Paul Jarc
2003-01-08 21:11   ` Neil Jerram
2003-01-08 21:35     ` Neil Jerram [this message]
2003-01-08 21:47       ` Marius Vollmer
2003-01-08 23:52         ` Neil Jerram

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m365szfhpw.fsf@laruns.ossau.uklinux.net \
    --to=neil@ossau.uklinux.net \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).