The command
Insertion of a term X on top of a term Y will have an effect conditioned on the settings of three user settable bits:
|
In insert-mode, the point Y will be replaced by X, then Y is put into the left-most(right-most) term-slot of X, if there is one.
In replace-mode (m-r)}'
The text slots of X will then be filled by the text children of Y from left-to-right (right-to-left). It is similar for the term slots of X and the term children of Y.
However, what is meant by children of Y and the left/right order is determined by the setting of the display-/term-structure mode (m-r)}'
N.B.: | When a term is displayed, some of the text- or term-children of the underlying term may be elided from display, and the order of the children in display may differ from the order they have in the underlying term. |
There are several possible sources for X, selected by the various edit commands.
the term clicked on | ![]() |
the term at the point (if not a slot) | |
top of stack |
|
2nd from top |
![]() |
referenced operator instance |
Lots of commands are defined explicitly to insert specific operators.
The commands
EXCEPTIONS: | Replace-mode will usually be forced when inserting a 1-place text operator on top of an instance of a 1-place text operator. Thus, Pasting one inference steps is different; |