@ronjonp
No crucifixion, but I disagree.
Without the dummy command, and because there is no use of the (command) function elsewhere, you get this...
CrissCross v1.0 (c)2022, John F. Uhden
Seclect rectangles...
Select objects: Specify opposite corner: 3 found
Select objects:
Command:
Command:
i.e. a double "Command:"
I always include it by copying and pasting from another program 'cause I may not know yet if I will be using a (command) function. It doesn't hurt anything and it's all within an undo group.
Oh, and BTW, the variables do get reset...
(defun *error* (error)
(mapcar 'setvar vars vals)
(vla-endundomark *doc*)
(cond
((not error))
((wcmatch (strcase error) "*QUIT*,*CANCEL*"))
(1 (princ (strcat "\nERROR: " error)))
)
(princ)
)