unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* readline option-interface broken: readline-set! causes Unbound variable: readline-options-interface unbound
@ 2005-06-21 16:20 Alan Grover
  2005-06-23 23:21 ` Kevin Ryde
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Grover @ 2005-06-21 16:20 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 1500 bytes --]

Environment:
* Guile 1.6.4
* Linux xxxxx 2.6.8-24.14-default #1 Tue Mar 29 09:27:43 UTC 2005 i686
i686 i386 GNU/Linux
* SuSE 9.2
buildstamp = Fri Dec  3 18:43:57 UTC 2004
LIBS =  -lqthreads -lpthread -lcrypt -lm
libguileinterface = 15:0:3

Summary:
Use of readline-set! causes the error:
	Unbound variable: readline-options-interface

Steps to reproduce:
(use-modules (ice-9 readline))
(activate-readline)
(readline-set! bounce-parens 100)

Notes:
* Same error with bounce-parens, history-length, and history-file
* (readline-options 'full) works fine
* Same behavior with or w/o .guile file (explicitly loading/activating
readline)

Transcript:
% cat .guile
(use-modules (ice-9 readline))
(activate-readline)
% guile
guile> (readline-options 'full)
bounce-parens   500     Time (ms) to show matching opening parenthesis
(0 = off).
history-length  200     History length.
history-file    yes     Use history file.

guile> (readline-set! bounce-parens 100)
<unnamed port>: In expression (readline-options-interface (append # #)):
<unnamed port>: Unbound variable: readline-options-interface
ABORT: (unbound-variable)
guile> (backtrace)

Backtrace:
In current input:
   3: 0* (readline-set! bounce-parens 100)
   3: 1  (begin (readline-options-interface (append
(readline-options-interface) (list # 100))) (readline-options-interface))
   ?: 2* (readline-options-interface (append
(readline-options-interface) (list (quote bounce-parens) 100)))

-- 
Alan Grover
awgrover@mail.msen.com
+1.734.476.0969


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

[-- Attachment #2: Type: text/plain, Size: 137 bytes --]

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

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

* Re: readline option-interface broken: readline-set! causes Unbound variable: readline-options-interface unbound
  2005-06-21 16:20 readline option-interface broken: readline-set! causes Unbound variable: readline-options-interface unbound Alan Grover
@ 2005-06-23 23:21 ` Kevin Ryde
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Ryde @ 2005-06-23 23:21 UTC (permalink / raw)
  Cc: bug-guile

[-- Attachment #1: Type: text/plain, Size: 318 bytes --]

Alan Grover <awgrover@mail.msen.com> writes:
>
> Use of readline-set! causes the error:
> 	Unbound variable: readline-options-interface

Thanks, I made a change to export that function.

(Down with non-lexical macros eh :-(.  define-option-interface could
unquote maybe, but I've got into trouble doing that before.)


[-- Attachment #2: readline.scm.diff --]
[-- Type: text/plain, Size: 694 bytes --]

--- readline.scm.~1.2.2.2.~	2005-06-05 11:33:46.000000000 +1000
+++ readline.scm	2005-06-24 09:19:38.665485232 +1000
@@ -1,6 +1,6 @@
 ;;;; readline.scm --- support functions for command-line editing
 ;;;;
-;;;; 	Copyright (C) 1997, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+;;;; 	Copyright (C) 1997, 1999, 2000, 2001, 2002, 2005 Free Software Foundation, Inc.
 ;;;; 
 ;;;; This program is free software; you can redistribute it and/or modify
 ;;;; it under the terms of the GNU General Public License as published by
@@ -50,6 +50,7 @@
 ;;; Run-time options
 
 (export
+ readline-options-interface ;; for readline-set! macro
  readline-options
  readline-enable
  readline-disable)

[-- Attachment #3: Type: text/plain, Size: 137 bytes --]

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

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

end of thread, other threads:[~2005-06-23 23:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-21 16:20 readline option-interface broken: readline-set! causes Unbound variable: readline-options-interface unbound Alan Grover
2005-06-23 23:21 ` Kevin Ryde

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