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

Re: Presentation type definition question



    Date: Fri, 7 Oct 88 14:39 EDT
    From: Laura Bagnall <LAURA@ZERMATT.LCS.MIT.EDU>

    Try this.  This should give you the error message
    "The object read, <foo>, was not a mumble form."

Thanks!

J. Scott Penberthy  <JSP@IBM.COM> also pointed out that the
:abbreviation-for and :expander keywords help out, and can eliminate the
need for specifying a parser entirely; the :description option can be used
on the deftype to control the prompt and error message for accepting the
type.

The only remaining "problem" (which isn't really) is that

	(ACCEPT '((AND SYS:FORM ((SATISFIES HNAME:FORM-P)))))

or
	(DEFINE-PRESENTATION-TYPE FOOTYPE ()
	  :ABBREVIATION-FOR '((AND SYS:FORM ((SATISFIES HNAME:FORM-P)))))

<<which is what I now use, with the :DESCRIPTION option>>

	(ACCEPT 'FOOTYPE)

Correctly refuse to accept (via mouse gesture) things that do not satisfy
the predicate, but all presentations of type SYS:FORM will light up (some
will beep if you mouse on them).

I've cc'd this message to customer-reports since I presume this is just a
bug, rather than incorrect usage.

----
Brad Miller		U. Rochester Comp Sci Dept.
miller@cs.rochester.edu {...allegra!rochester!miller}