To use the hooks described in this section, you will need to load the
(gschem hook)
module.
gschem defines a number of hooks that allow functions to be automatically run whenever a number of built-in actions are invoked by the user.
Most Scheme functions do not call these hooks. If it makes sense for your code to invoke a standard hook, you should normally do so explicitly.
Warning: Functions added to these standard hooks should not normally modify their arguments.
For more information on hooks in Guile, see Hooks.
Called after objects are added to the page, at their initial creation. The argument is a list of the objects being added.
Called after objects are removed from the page. Argument is a list of the objects being removed.
Called after objects are moved. Argument is a list of the objects that were mirrored.
Called after objects are mirrored. Argument is a list of the objects that were mirrored.
Called after objects are rotated. Argument is a list of the objects that were rotated.
Called after objects are pasted to the page, either via Edit → Copy Mode or similar, or via buffers, or via the clipboard. Argument is a list of the objects that were pasted.
Called after attributes are attached to something. The argument is a list of the attributes that were attached.
Called after attributes are detached from something. The argument is a list of the attributes that were detached.
Called after objects are added to the selection. The argument is a list of objects that were selected.