current elements (of element-expression)?
current elements gives you shelf-like access to the currently-opened elements of the
currently-active markup parser. Its functionality is limited, and users are encouraged to use
The items of the
current elements shelf are always unkeyed. The first item on the shelf, if any,
is always the document element, or outermost element of the currently-active parse. The last item on the shelf,
if any, is always the innermost element of the currently-active parse.
current elements cannot be
modified directly, since it is always under the control of the markup parser; in this sense, it behaves much like a
read-only shelf-class function.
current elements can be used in many context where a shelf of type
expected. For example, it can be passed to a function:
define function f (read-only markup-element-event e) elsewhere element #implied f (current elements) ; ...
Similarly a snapshot of the current open element stack can be had by using
current elements is
read-only, the above-example could not have used
nor could the argument to the earlier function have been defined as