Re: nested presentations



David Golden <david.golden@xxxxxxxxxxxxx> writes:

I have a vague memory of a criticism on someone's part
of both SLIME and McCLIM, about neither supporting
nested presentations. I'm trying to find a description
of how such nested presentations worked traditionally.

McCLIM does support nested presentations. To see that, fire up the
listener and type something like:

(in-package :clim-user)

(with-output-as-presentation (*standard-output* 123 'number)
(princ "hello")
(with-output-as-presentation (*standard-output* 456 'integer)
(princ "hi"))
(princ "there"))

and you will see:

hellohithere

Now, type:

(accept 'number)

You will be prompted for a number. If you drag the pointer over the
middle "hi" of the output, you will see only those two letters
highlighted, and clicking there will accept the number 456. If,
instead, you drag the pointer over some other part of the output, the
entire output will be highlighted, and 123 will be accepted.

Typing:

(accept 'integer)

will make only the "hi" part sensitive as expected.
--
Robert Strandh

---------------------------------------------------------------------
Greenspun's Tenth Rule of Programming: any sufficiently complicated C
or Fortran program contains an ad hoc informally-specified bug-ridden
slow implementation of half of Common Lisp.
---------------------------------------------------------------------
.



Relevant Pages

  • nested presentations
    ... I have a vague memory of a criticism on someone's part ... of both SLIME and McCLIM, about neither supporting ... of how such nested presentations worked traditionally. ...
    (comp.lang.lisp)
  • Re: nested presentations
    ... about neither supporting ... of how such nested presentations worked traditionally. ... SLIME does support nested presentations since August 2005. ... (swank::presenting-object object stream ...
    (comp.lang.lisp)