[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: with-cursor
- To: info-mcl@ministry.cambridge.apple.com
- Subject: Re: with-cursor
- From: neves@aristotle.ils.nwu.edu (Neves )
- Date: 18 Nov 1993 21:45:02 GMT
- Distribution: world
- Newsgroups: comp.lang.lisp.mcl
- Organization: The Institute for the Learning Sciences
- References: <9311181913.AA29028@cambridge.apple.com>
Bill St. Clair (bill@cambridge.apple.com) wrote:
: (defmacro with-cursor (cursor &body body)
: `(unwind-protect
: (let ((*cursorhook* ,cursor))
: (update-cursor)
: ,@body)
: (update-cursor)))
: )
I have one question about unwind-protect. It is used to make sure a
cleanup form is executed but as it is usually used the cleanup form is
only guarateed to begin, not to finish. Suppose someone goes cmd-.
crazy -- wouldn't the cleanup form be prevented from executing?
Should most cleanup forms have a without-interrupts wrapped around
them?