diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-18 23:04:53 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-18 23:04:53 -0700 |
commit | 4be9838bd95543911ab72cb68baf8fc85d63b586 (patch) | |
tree | 9c9734bbd18a33489a11d7e8325f820be3568299 /txr.1 | |
parent | 033462f4fb79769d89069f7a8bb7e905b5f09e23 (diff) | |
download | txr-4be9838bd95543911ab72cb68baf8fc85d63b586.tar.gz txr-4be9838bd95543911ab72cb68baf8fc85d63b586.tar.bz2 txr-4be9838bd95543911ab72cb68baf8fc85d63b586.zip |
Atom insert feature.
* parser.c (provide_atom): New static function.
(repl): Register provide_atom with linenoise as
atom callback.
* txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -33746,6 +33746,25 @@ Only the most recent three decimal digits are retained, so the number can range from 0 to 999. A value of 0, or a value which exceeds the number of words causes the Ctrl-W or w to do nothing. +.NP* Insert Previous Atom + +The equivalent command sequences Ctrl-X, a and Ctrl-X, Ctrl-A insert +an atom from the previous line at the cursor position. A line only +makes atoms available if it expresses a valid \*(TX form, free of syntax +errors. A line containing only whitespace or a comment makes no atoms +available. For the purposes of this editing feature, an atom is defined +as the printed representation of a Lisp atom taken from the Lisp form +specified in the previous line. The line is flattened into atoms +as if by the +.code flatcar +function. By default, the last atom is extracted. A numeric argument +typed between the Ctrl-X and Ctrl-A or a can be used to select a +atoms by position from the end. The number 1 specifies the last atom, +2 the second last and so on. +Only the most recent three decimal digits are retained, so the number can range +from 0 to 999. A value of 0, or a value which exceeds the number of words +causes the Ctrl-A or a to do nothing. + .NP* Symbolic Completion If the Tab key is pressed while editing a line, it is interpreted as a |