Skip to content

Conversation

@christophejunke
Copy link
Contributor

@christophejunke christophejunke commented Apr 23, 2021

Hi,

This is a minor problem but I often use system-apropos-list to find the exact name of a system whose name I don't quite remember, or when trying to see if some project is already available on Quicklisp. In such cases, the return value of the function is a list of system objects. I have then to get the name of such a system to quickload it, because passing directly a system is not supported (as far as I know, I'd be interested to know if I am missing a better way to do this).

The patch calls name on the thing being given to quickload, and adds a method for name specializing on string values. That makes this interaction possible:

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 ...>)

The patch is merely here to discuss this particular problem I had and how I solved it on my machine, feel free to edit it or ignore it.

Thank you

@christophejunke
Copy link
Contributor Author

If that's a useful I can extend this behavior to other functions that currently expect string designators.

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 ...>)
@quicklisp quicklisp merged commit 2bbf04e into quicklisp:master Sep 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants