File: fields.el.html
Idea courtesy of yasnippets.
If someone prefers not to type unknown dictionary entries into mini-buffer prompts, it could instead use in-buffer fields.
A template-region specifies an area in which the fields exist. If the cursor exits the region, all fields are cleared.
Each field is independent, but some are linked together by name. Typing in one will cause the matching ones to change in step.
Each field has 2 overlays. The second overlay allows control in the character just after the field, but does not highlight it.
@TODO - Cancel an old field array if a new one is about to be created!
Keep this library independent of SRecode proper.
Defined variables (4)
srecode-field-archive | While inserting a set of fields, collect in this variable. |
srecode-field-keymap | Keymap applied to field overlays. |
srecode-field-replication-max-size | Maximum size of a field before canceling replication. |
srecode-fields-exit-confirmation | Ask for confirmation before leaving field editing mode. |
Defined functions (22)
srecode-active-template-region | () |
srecode-field | (&rest SLOTS) |
srecode-field--eieio-childp | (OBJ) |
srecode-field-behind-hook | (OL AFTER START END &optional PRE-LEN) |
srecode-field-child-p | (OBJ) |
srecode-field-end | () |
srecode-field-exit-ask | () |
srecode-field-mod-hook | (OL AFTER START END &optional PRE-LEN) |
srecode-field-next | () |
srecode-field-p | (OBJ) |
srecode-field-post-command | () |
srecode-field-prev | () |
srecode-field-start | () |
srecode-overlaid | (&rest SLOTS) |
srecode-overlaid--eieio-childp | (OBJ) |
srecode-overlaid-at-point | (CLASS) |
srecode-overlaid-child-p | (OBJ) |
srecode-overlaid-p | (OBJ) |
srecode-template-inserted-region | (&rest SLOTS) |
srecode-template-inserted-region--eieio-childp | (OBJ) |
srecode-template-inserted-region-child-p | (OBJ) |
srecode-template-inserted-region-p | (OBJ) |