summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-09-10 07:08:07 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-09-10 07:08:07 -0700
commitcbf8c45bc7e737a849b62d4c2283aae11a3010e1 (patch)
tree80327ad951250d5966c4480b8fbb38baa8e5129e /txr.1
parente046e1890f4655478a99fa7c1cb078eefdc54e00 (diff)
downloadtxr-cbf8c45bc7e737a849b62d4c2283aae11a3010e1.tar.gz
txr-cbf8c45bc7e737a849b62d4c2283aae11a3010e1.tar.bz2
txr-cbf8c45bc7e737a849b62d4c2283aae11a3010e1.zip
Don't scan C source code for Lisp symbols.
* eval.c (eval_init): Register package-alist, package-name and package-symbols intrinsics. * genvim.txr: Rather than scanning C sources for TXR Lisp symbols, iterate over the packages and their symbols, collecting anything which has a binding or is self-evaluating. To get the stdlib symbols, we trigger the autoloads by doing boundp queries on a few symbols. * txr.1: Document package-alist, package-name and package-symbols.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.138
1 files changed, 38 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index c8255ea2..0c8108fe 100644
--- a/txr.1
+++ b/txr.1
@@ -29880,6 +29880,44 @@ then it is returned. Otherwise
.code nil
is returned.
+.coNP Function @ package-alist
+.synb
+.mets (package-alist)
+.syne
+.desc
+The
+.code package-alist
+function returns an association list
+which contains an entry about each existing
+package.
+
+Each element of the list is a cons cell
+whose
+.code car
+field is the name of a package and whose
+.code cdr
+is a package object.
+
+.coNP Function @ package-name
+.synb
+.mets (package-name << package )
+.syne
+.desc
+The
+.code package-name
+function retrieves the name of a package.
+
+.coNP Function @ package-symbols
+.synb
+.mets (package-symbols << package )
+.syne
+.desc
+The
+.code package-symbols
+function returns a list of all the symbols
+which are interned in
+.metn package .
+
.coNP Function @ intern
.synb
.mets (intern < name <> [ package ])