Skip to content

leaf-keys argument :package has two different results #507

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

Open
ijah4 opened this issue Sep 28, 2021 · 0 comments
Open

leaf-keys argument :package has two different results #507

ijah4 opened this issue Sep 28, 2021 · 0 comments

Comments

@ijah4
Copy link
Contributor

ijah4 commented Sep 28, 2021

Description

When bind-keymap is t. :package pkg will load the pkg feature.
when bind-keymap is nil :package pkg will convert to eval-after-load 'pkg.

This is ambiguity.

Issue leaf-block

(leaf-keys ((some-map :package pkg ("key" .  command))) nil 'bind-keymap nil)

(leaf-keys ((some-map :package pkg ("key" .  command))) nil nil nil)

Expected output from macroexpand-1 of the leaf-block

:package always is expanded to the form eval-after-load.

For load pkg file when binding keymaps, some else keyword (:load-package :require) may be a good choice?

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

1 participant