mirror of
https://github.com/storytold/cadcraft.git
synced 2026-12-01 18:25:32 -06:00
Session::start_from recorded the incoming origin and command number, then cancelled the running command. Cancellation can abort a paused LISP routine and run its *error* handler; a handler that starts a command records that command's Program origin through its own Session::start_from. The new command's factory then ran after that cancellation, and the INSERT and MINSERT factories read the overwritten field, so a person's '-INSERT T … replacing a waiting routine was taken for a program's and ATTDIA 1 opened no dialog. The origin and number are now recorded after the cancellation, so they describe this start and the factory sees the origin this command was started with; a handler's own commands keep their Program origin. The handler's command also keeps its own number, which the dialog identity and the Blocks palette's placing test use. Regression tests replace (command "LINE" "0,0" pause), whose *error* handler starts LINE, with a person's '-INSERT or '-MINSERT under ATTDIA 1: both fail before the change (command_origin Program, no attribute entry), in the engine and in the UI harness, and the handler's LINE is still drawn as the program's. The UI test comment that called a fresh OK an old confirmation now says what the test does.