Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Karsten Poeck
ansi-test
Commits
937114ce
Commit
937114ce
authored
Apr 04, 2003
by
pfdietz
Browse files
Fixed mistake in the test-if-not-in-cl-package tests (thanks PG).
parent
91dd69ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
ansi-tests/cl-symbols-aux.lsp
View file @
937114ce
...
...
@@ -17,24 +17,23 @@
(multiple-value-bind (sym status)
(find-symbol #+lower-case str #-lower-case (string-upcase str) 'common-lisp)
(or
;; Symbol not present in the common lisp package
(not status)
;; Symbol not present in the common lisp package
as an external symbol
(not
(eqt
status
:external)
)
;; Check if it has any properties whose indicators are
;; external in any of the standard packages or are accessible
;; in CL-USER
(and (eqt status :external)
(let ((plist (symbol-plist sym)))
(loop for e = plist then (cddr e)
while e
for indicator = (car e)
when (and (symbolp indicator)
(or (is-external-symbol-of indicator
"COMMON-LISP")
(is-external-symbol-of indicator "KEYWORD")
(eqt indicator (find-symbol
(symbol-name indicator)
"COMMON-LISP-USER"))))
collect indicator))))))
(let ((plist (symbol-plist sym)))
(loop for e = plist then (cddr e)
while e
for indicator = (car e)
when (and (symbolp indicator)
(or (is-external-symbol-of indicator
"COMMON-LISP")
(is-external-symbol-of indicator "KEYWORD")
(eqt indicator (find-symbol
(symbol-name indicator)
"COMMON-LISP-USER"))))
collect indicator)))))
(defun safe-symbol-name (sym)
(catch-type-error (symbol-name sym)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment