summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-04-05 12:17:17 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-04-05 12:17:17 -0700
commitd3124420ce958e82cda1d695eee39427168c9ebf (patch)
treec4051f901a82754d5a35f2c923e45b1cba8a8b75
parentbc644ad2d6cf1ad3cd888a094bb2dedeb8e62d6f (diff)
downloadtxr-d3124420ce958e82cda1d695eee39427168c9ebf.tar.gz
txr-d3124420ce958e82cda1d695eee39427168c9ebf.tar.bz2
txr-d3124420ce958e82cda1d695eee39427168c9ebf.zip
tags: process only pkg clauses of load-for.
* tags.tl (process-package-influencing-form): When a load-for is encountered, only descend into fake-load if the clause kind is pkg, and the package doesn't exist.
-rwxr-xr-xtags.tl5
1 files changed, 4 insertions, 1 deletions
diff --git a/tags.tl b/tags.tl
index 42c52910..07c39898 100755
--- a/tags.tl
+++ b/tags.tl
@@ -88,7 +88,10 @@
(caseq (car form)
(load (fake-load (cadr form)))
(load-for (each ((clause (cdr form)))
- (fake-load (caddr clause))))
+ (tree-bind (kind sym arg) clause
+ (when (and (eq kind 'pkg)
+ (not (find-package sym)))
+ (fake-load (caddr clause))))))
(defpackage (make-package (symbol-name (cadr form))))))
(defun fake-load (path)