I have a elisp script for Emacs that I want to do some clean up in if a user hits Ctrl-G. I use 'read-event' to catch all events, but this does not catch the Ctrl-G. When Ctrl-G is hit, it just stops execution.
In XEmacs, when you call next-command-event it will give you all events including when a user hits Ctrl-G. There must be some equivalent in Emacs.