diff --git a/doc/xschem_man/developer_info.html b/doc/xschem_man/developer_info.html index 9a847521..5db37d02 100644 --- a/doc/xschem_man/developer_info.html +++ b/doc/xschem_man/developer_info.html @@ -779,6 +779,7 @@ C {verilog_timescale.sym} 1050 -100 0 0 {name=s1 timestep="1ns" precision="1ns"
  • lastsel number of selected objects
  • line_width get line width
  • lines (xschem get lines n) number of lines on layer 'n'
  • +
  • modified schematic is in modified state (needs a save)
  • netlist_name netlist name if set. If 'fallback' given get default name
  • netlist_type get current netlist type (spice/vhdl/verilog/tedax)
  • no_draw disable drawing
  • diff --git a/src/scheduler.c b/src/scheduler.c index 96a29a6b..1dd19499 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -1455,6 +1455,12 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg } } break; + case 'm': + if(!strcmp(argv[2], "modified")) { /* schematic is in modified state (needs a save) */ + if(!xctx) {Tcl_SetResult(interp, not_avail, TCL_STATIC); return TCL_ERROR;} + Tcl_SetResult(interp, my_itoa(xctx->modified),TCL_VOLATILE); + } + break; case 'n': if(!strcmp(argv[2], "netlist_name")) { /* netlist name if set. If 'fallback' given get default name */ if(argc > 3 && !strcmp(argv[3], "fallback")) { @@ -2103,7 +2109,7 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg if(argc > 2 ) { set_title = atoi(argv[2]); } - if((xctx->semaphore == 0)) go_back(1, set_title); + if((xctx->semaphore == 0)) go_back(0, set_title); Tcl_ResetResult(interp); }