unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#13076: guile: ",option prompt VALUE" only accepts literals
@ 2012-12-04  3:29 Daniel Hartwig
  2013-03-07 10:31 ` Andy Wingo
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Hartwig @ 2012-12-04  3:29 UTC (permalink / raw)
  To: 13076

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: 





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

* bug#13076: guile: ",option prompt VALUE" only accepts literals
  2012-12-04  3:29 bug#13076: guile: ",option prompt VALUE" only accepts literals Daniel Hartwig
@ 2013-03-07 10:31 ` Andy Wingo
  2013-03-07 19:40   ` Andy Wingo
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Wingo @ 2013-03-07 10:31 UTC (permalink / raw)
  To: Daniel Hartwig; +Cc: 13076

On Tue 04 Dec 2012 04:29, Daniel Hartwig <mandyke@gmail.com> writes:

> 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.

Fixed, thanks for the report.  Now it will always evaluate the RHS.

Note that this changes the behavior of ,on-error and ,compile-options,
but since they are interactive commands, that should be fine.

Andy
-- 
http://wingolog.org/





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

* bug#13076: guile: ",option prompt VALUE" only accepts literals
  2013-03-07 10:31 ` Andy Wingo
@ 2013-03-07 19:40   ` Andy Wingo
  0 siblings, 0 replies; 3+ messages in thread
From: Andy Wingo @ 2013-03-07 19:40 UTC (permalink / raw)
  To: Daniel Hartwig; +Cc: 13076-done

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





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

end of thread, other threads:[~2013-03-07 19:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-04  3:29 bug#13076: guile: ",option prompt VALUE" only accepts literals Daniel Hartwig
2013-03-07 10:31 ` Andy Wingo
2013-03-07 19:40   ` Andy Wingo

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).