Subject: bug#13076: closed (Re: bug#13076: guile: ",option prompt VALUE" only accepts literals)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 07 Mar 2013 19:41:02 +0000

Your bug report

#13076: guile: ",option prompt VALUE" only accepts literals

which was filed against the guile package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
13076: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13076
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#13076: guile: ",option prompt VALUE" only accepts literals
From: Andy Wingo <[email-masked]>
To: Daniel Hartwig <[email-masked]>
Cc: [email-masked]
Date: Thu, 07 Mar 2013 20:40:09 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Aaaaand marking as done
-- 
http://wingolog.org/

Subject: guile: ",option prompt VALUE" only accepts literals
From: Daniel Hartwig <[email-masked]>
To: [email-masked]
Date: Tue, 04 Dec 2012 11:29:08 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

Package: guile
Version: 2.0.7
Severity: minor

Dear maintainer

The REPL prompt option accepts #f, strings, thunks, and procedures of
one argument.  However, only the first two can be set using the
meta-command ,option; one must use repl-option-set! for thunks and
procedures.

It seems that VALUE is not evaluated.

--
(sid)daniel@io:~/src/gnu/guile$ meta/guile
GNU Guile 2.0.7.2-e6a73
Copyright (C) 1995-2012 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> ,option prompt "foo: "
foo: ,option prompt (lambda (repl) "bar: ")
While executing meta-command:
ERROR: Invalid prompt (lambda (repl) "bar: ")
foo: (lambda (repl) "bar: ")
$1 = #<procedure 8a7e860 at <current input>:3:0 (repl)>
foo: ,option prompt $1
While executing meta-command:
ERROR: Invalid prompt $1
foo: (use-modules (system repl common))
foo: (repl-option-set! (car (fluid-ref *repl-stack*)) 'prompt $1)
bar: