Ken Tilton <kentilton@gmail.com> wrote:
+---------------
| http://common-lisp.net/cgi-bin/viewcvs.cgi/cells/cells-manifesto.txt?rev=1.13&root=cells&view=markup
+---------------
Call me stupid, but isn't there a bug in the first example?
(make-instance 'menu-item
:label "Cut"
:enabled (c? (bwhen (f (focus *window*))
(and (typep focus 'text-widget)
(selection-range focus)))))
Shouldn't those last two occurences of FOCUS be F instead?
(make-instance 'menu-item
:label "Cut"
:enabled (c? (bwhen (f (focus *window*))
(and (typep f 'text-widget)
(selection-range f)))))
Or am I misunderstanding BWHEN? [I thought
it was sort of a BIND + WHEN or LET1 + WHEN.]
-Rob
-----
Rob Warnock <rpw3@rpw3.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607