Commit 6e5f8af8 authored by Robert Goldman's avatar Robert Goldman
Browse files

Lambda function -> flet.

Added a named local function so that I could trace the interpretation of a source registry interpretation.
parent 4ee872ce
Loading
Loading
Loading
Loading
+4 −3
Changes for source-registry.lisp: 4 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -322,9 +322,7 @@ after having found a .asd file? True by default.")
    (dolist (entry (flatten-source-registry parameter))
      (destructuring-bind (directory &key recurse exclude) entry
        (let* ((h (make-hash-table :test 'equal))) ; table to detect duplicates
          (register-asd-directory
           directory :recurse recurse :exclude exclude :collect
           #'(lambda (asd)
          (flet ((directory-registrar (asd)
                   (let* ((name (pathname-name asd))
                          (name (if (typep asd 'logical-pathname)
                                    ;; logical pathnames are upper-case,
@@ -348,6 +346,9 @@ after having found a .asd file? True by default.")
                                              found several entries for ~A - picking ~S over ~S~:>")
                                   directory recurse name better worse)))
                         (setf (gethash name h) asd))))))
            (register-asd-directory
             directory :recurse recurse :exclude exclude :collect
             #'(lambda (asd) (directory-registrar asd))))
          (maphash #'(lambda (k v) (setf (gethash k registry) v)) h))))
    (values))