mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-16 06:12:25 -08:00
Coerce to string before calling FIND-SYMBOL.
This commit is contained in:
parent
d8a74f6357
commit
e360d9000c
1 changed files with 8 additions and 9 deletions
|
|
@ -19,15 +19,14 @@
|
|||
Returns a list of all symbols that have the specified print name.
|
||||
STRING-DESIGNATOR may be a symbol, in which case the print name of the symbol
|
||||
is used."
|
||||
(when (symbolp string-or-symbol)
|
||||
(setq string-or-symbol (symbol-name (the-symbol string-or-symbol))))
|
||||
(mapcan #'(lambda (p)
|
||||
(multiple-value-bind (s i)
|
||||
(find-symbol string-or-symbol p)
|
||||
(if (or (eq i :internal) (eq i :external))
|
||||
(list s)
|
||||
nil)))
|
||||
(list-all-packages)))
|
||||
(let ((symbol-name (string string-or-symbol)))
|
||||
(mapcan #'(lambda (p)
|
||||
(multiple-value-bind (s i)
|
||||
(find-symbol symbol-name p)
|
||||
(if (or (eq i :internal) (eq i :external))
|
||||
(list s)
|
||||
nil)))
|
||||
(list-all-packages))))
|
||||
|
||||
(defun packages-iterator (packages options maybe-list)
|
||||
(let ((all-symbols nil))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue