I have lisp routines that set a variable for the user osnap settings. Different routines set different osnap settings then at the end of the routine it sets the osmode variable back to the user settings prior to running the command.
When a user hits escape (or doesn't select anything during the routine and hits enter to end it) the routine does not get to the end to reset osmode to original user settings. I hear something about error handling in a lisp routinein which if a routine doesn't finish it puts the settings back to how the were prior to running the command.
Can someone guide in how to write this in the lisp files.
Thank you all.