GNU bug report logs - #13076
guile: ",option prompt VALUE" only accepts literals

Previous Next

Package: guile;

Reported by: Daniel Hartwig <mandyke <at> gmail.com>

Date: Tue, 4 Dec 2012 03:32:02 UTC

Severity: minor

Found in version 2.0.7

Done: Andy Wingo <wingo <at> pobox.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Daniel Hartwig <mandyke <at> gmail.com>
To: submit <at> debbugs.gnu.org
Subject: guile: ",option prompt VALUE" only accepts literals
Date: Tue, 04 Dec 2012 11:29:08 +0800
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 <at> 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: 




This bug report was last modified 12 years and 138 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.