summaryrefslogtreecommitdiffstats
path: root/genman.txr
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-04-03 08:34:07 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-04-03 08:34:07 -0700
commit73d668988bb0ee6d4ed0d27064b0616f8d58adfd (patch)
tree754a876f8fcc30fc8d279fc27ef208f18c17fc72 /genman.txr
parentde88f832f442dfdf6a9a23a4e8861e271a94ec28 (diff)
downloadtxr-73d668988bb0ee6d4ed0d27064b0616f8d58adfd.tar.gz
txr-73d668988bb0ee6d4ed0d27064b0616f8d58adfd.tar.bz2
txr-73d668988bb0ee6d4ed0d27064b0616f8d58adfd.zip
lib: new function for documentation lookup.
* genman.txr: dump contents of symhash into a doc-syms.tl library file, as a defvarl form. * lisplib.c (doc_instantiate, doc_set_entries): New static functions. (lisplib_init): Register autoload for doc-lookup module to symbols doc and *doc-url*. * share/txr/stdlib/doc-lookup.tl: New file. * share/txr/stdlib/doc-syms.tl: Likewise. * txr.1: Documented.
Diffstat (limited to 'genman.txr')
-rw-r--r--genman.txr1
1 files changed, 1 insertions, 0 deletions
diff --git a/genman.txr b/genman.txr
index a2161d68..89aec557 100644
--- a/genman.txr
+++ b/genman.txr
@@ -283,3 +283,4 @@ function tocjump(hash) {
</body>
</html>
@(end)
+@(do (file-put "share/txr/stdlib/doc-syms.tl" ^(defvarl doc-syms ,symhash)))