mirror of
https://github.com/storytold/cadcraft.git
synced 2026-12-02 10:47:31 -06:00
A script's flag was the only origin INSERT consulted, and only Session::script
set it. A LISP (command "-INSERT" …) — in a LISP file, APPLOAD, or
engine.execute {"command":"lisp"} — started INSERT outside a script, so a
routine that ended before the first attribute answer left ATTDIA 1 to open a
dialog it could never answer; a routine resumed after a yield had the same gap.
Commands now record who started them for their whole life
(Session::command_origin(): a person at the command line or from a menu,
toolbar or palette, or a program), and INSERT opens the dialog only for a
person's command. Session::start_programmatic marks an AutoLISP (command …)
start, and Session::start takes a script's commands as the program's, so the
scripted INSERT still asks at the command line. A typed or menu INSERT keeps
the dialog.
18 lines
481 B
Rust
18 lines
481 B
Rust
use super::doc_state::{DocState, Snapshot};
|
|
use super::error::{EngineError, Result};
|
|
use super::running::{PendingWindow, Running};
|
|
use super::view::View;
|
|
use super::{
|
|
Arc, Bounds2, Drag, Drawing, Entity, Handle, Input, Origin, Prompt, Session, Space, Step, Value, Vec2, assoc, cmd, find_command, guard, lisp,
|
|
pointmod, prompt, select, snap, sysvars, units,
|
|
};
|
|
|
|
mod cmdline;
|
|
mod execute;
|
|
mod files;
|
|
mod interactive;
|
|
mod picking;
|
|
mod zoom;
|
|
|
|
pub(crate) use picking::group_10;
|