Skip to content

Commit f426f76

Browse files
quickload: allow thing to be any named thing
For example, this makes it easier to load a system when finding it with system-apropos-list: USER> (system-apropos-list "classo") (#<QL-DIST:SYSTEM classowary ...> ...) USER> (quickload (first *)) To load "classowary": Load 1 ASDF system: classowary ; Loading "classowary" (#<QL-DIST:SYSTEM classowary ...>)
1 parent 8b63e00 commit f426f76

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

quicklisp/client.lisp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
(setf systems (list systems)))
3535
(dolist (thing systems systems)
3636
(flet ((ql ()
37-
(autoload-system-and-dependencies thing :prompt prompt)))
37+
(autoload-system-and-dependencies (name thing)
38+
:prompt prompt)))
3839
(tagbody :start
3940
(restart-case (if verbose
4041
(ql)

quicklisp/dist.lisp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,12 @@
382382
(defmethod system ((name string))
383383
(find-system (string-downcase name)))
384384

385+
(defmethod name ((string string))
386+
string)
387+
388+
(defmethod name ((symbol symbol))
389+
(symbol-name symbol))
390+
385391
;;;
386392
;;; Dists
387393
;;;

0 commit comments

Comments
 (0)