First argument is a string designator. Comparing strings with
CHAR-EQUAL is more reasonable than using CHAR=.
(defun map-apropos-symbols (function string package external-only)
(flet ((handle-symbol (symbol)
- ;; TODO: it's implementation-dependent, though CHAR-EQUAL seems
- ;; more reasonable nevertheless
- (when (search string (symbol-name symbol) :test #'char=)
+ (when (search string (symbol-name symbol) :test #'char-equal)
(funcall function symbol))))
(if package
(if external-only
(when (fboundp symbol)
(format t " (fbound)"))
(terpri))
- string package external-only))
+ (string string) package external-only))
;;; DESCRIBE