<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Helvetica, Arial, sans-serif">Good day from Greg Bennett
who is running sbcl-1.5.8 in emacs under linux mint 19.2 64-bit<br>
and mcclim code from mcclim-20191008-get via quicklisp.<br>
<br>
I am trying to understand some of the mcclim examples which use
accepting-values.<br>
In my case the code is in <br>
...../mcclim-20191008-git/Examples/accepting-values.lisp<br>
<br>
At the top of this file there is this note:<br>
;;; Some simple examples from the Franz user manual. You can run<br>
;;; these from the listener.<br>
<br>
Thus encouraged, I tried some of these after loading the demo
asdf. For example, I tried to use<br>
(defun accept-popup (seq &key (stream *query-io*))<br>
(let ((val (elt seq 0))<br>
(ptype `(completion ,seq)))<br>
(accepting-values (stream)<br>
(setq val (accept ptype :stream stream :view
climi::+pop-up-menu-view+<br>
:prompt "Choose one:" :default val)))<br>
val))<br>
;;<br>
via (accept-popup (list 3 5 7 9))<br>
<br>
In every instance I fail with:<br>
<br>
There is no applicable method for the generic function<br>
#<STANDARD-GENERIC-FUNCTION CLIM:STREAM-CURSOR-POSITION
(2)><br>
when called with arguments<br>
(#<SYNONYM-STREAM :SYMBOL SWANK::*CURRENT-QUERY-IO*
{10016D0A93}>).<br>
[Condition of type SB-PCL::NO-APPLICABLE-METHOD-ERROR]<br>
<br>
which, I think, means that my difficulty lies in the interface
between emacs (swank) and the form I'm experimenting with,<br>
even 'though that code runs perfectly when invoked in (demodemo).
In particular, the invocation of *query-io* <br>
(which evaluates to the<br>
#<SYNONYM-STREAM :SYMBOL SWANK::*CURRENT-QUERY-IO*
{10016D0A93}><br>
of the error is evidently something which I am getting wrong.<br>
<br>
I should be grateful to learn how be able to run the elements of
(demodemo) from a listener (connected to lisp via emacs)<br>
<br>
<br>
Cheers /Greg</font>
</body>
</html>