2. xdrx-begin, xdrx-end
Use in pairs , Nested use is not recommended
Under normal circumstances, xdrx-begin mainly sets several system variables, cmdecho, osmode, coords, calyer, and can be automatically restored through paired xdrx-end.
In addition, undoend, undostart are set
xdrx-end, restore the system variables set by xdrx-begin, then, undoend, xdrx-sysvar-pop
The rest, there are some API internal variable settings and restores, users don’t need to worry about it.
=====
Although xdrx-sysvar-pop is called in xdrx-end, from the perspective of clear code logic, it is recommended to use xdrx-sysvar-push and xdrx-sysvar-pop in pairs.