Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One potential source of inspiration for the commands #9

Open
fstamour opened this issue Jul 13, 2016 · 1 comment
Open

One potential source of inspiration for the commands #9

fstamour opened this issue Jul 13, 2016 · 1 comment

Comments

@fstamour
Copy link

This is just a pointer.

In the README, it says:

We are working on a way of representing commands.  We will
probably go for something similar to the CLIM macro DEFINE-COMMAND
that mentions the types of the arguments.

Maybe you could look at how stumpwm does it for some inspiration.

I was about to say that it would be very nice if the "command module" of 2nd climacs was reusable for other projects. But it looks like you already took care of that (i.e. it has its own system).

@robert-strandh
Copy link
Owner

Hello,

I looked at how Stumpwm does it. It keeps a hash table with
"interactive hints" that is separate from the function that is defined
by DEFCOMMAND. One of the problems that I want to design a solution
for is this separation between the command function and the hints.

Perhaps it is not a big deal, but it seems inelegant to me in that if
you define a command and then later use FMAKUNBOUND to remove it, then
the associated hints are still present in the hash table.

But I found a solution that I think is the best so far; even better
than the one I had for CLIMatis. I define a subclass of
STANDARD-GENERIC-FUNCTION that has an additional slot containing
information on how to invoke the command.

Check the sub-directory named "Command".

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

No branches or pull requests

2 participants