-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
emacsWithPackages should know its package set #10819
Comments
I plan to do this after I merge |
Why do you think it's impossible to include packages from other sets in the list argument? |
I guess it's possible, but doesn't that defeat the purpose of making the interface less messy? |
Sorry, that sounds unintentionally combative. I mean, if this would be helpful to you, I'm happy to do it now because I had planned to do it anyway. |
No worries. I have my own little helper function in |
The
emacsWithPackages
function expects as an argument the list of packages to include in the environment. Now, this means that bothemacsWithPackages
and the Emacs package set used to construct its argument refers to an Emacs binary, but they don't necessarily refer to the same. This can have weird effects, i.e. suppose that I'd like to have an environment with the Emacs variant that doesn't depend on X11:Obviously, I'd like to pass a list of packages from a package set that''s build with
emacs24-nox
, too, but such a package set doesn't exist and there's no easy way for me to create one.emacsPackagesGen
is a recursive function, so I cannot call it in place without alet
binding, which is very inconvenient. Furthermore, what happens when I accidentally pass packages to the function above that are, say, compiled with Emacs 23.x? IMHO, the interface shouldn't require its users to deal with that kind of mess.I would suggest that
emacsWithPackages
becomes a function that lives inside of the Emacs package set and that takes as an argument a function that maps from an Emacs package set (the oneemacsWithPackages
lives in) to a list of packages. With that API, I could simply writeand get the expected result without any fuss.
Cc: @ttuegel
The text was updated successfully, but these errors were encountered: