[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using sequence type in accepting-values?



I am on a SPARC in Allego using CLIM 1.0.

I have two questions on accepting-values.

Given this:

(accepting-values (a-stream)
   (accept '(sequence symbol) :stream a-stream :prompt "Possible-Choices"))

Q1: How do I supply a default list for the sequence presentation type?

If I rewrite the second line as:

(accept '(sequence symbol) :stream a-stream :default '(a b c)
	:prompt "Possible-Choices")

It presents it as a list, but not as the items within that list separated by
commas (as it should).  And if I accept the default it returns '((a b c))
which is not what I want [it should be '(a b c)].  I want to allow the user
capability to add or remove elements from a list within the accept call. Is there another presentation type I should be using (subset is inadequate
because your stuck with a static list)?

Q2: In-line edits of accept values within the accepting-values seems to work
incorrectly.  If I click to edit an accept field it is removed from the
display (the default is set to whatever was in that field).  That is fine
for some presentation types.  Other presentation types like 'sequence should remain on the display and allow the user to do inline edits (like the commands
in an application pane).  It is one royal pain in the butt to the user to
force him reinput everything that was in that field when maybe they are just
adding more items or selectively pruning some away.