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

syntax error in rustic-cargo-add with prefix argument #10

Merged
merged 1 commit into from
May 19, 2024

Conversation

CeleritasCelery
Copy link
Contributor

Original description by @sigvei in brotzeit/rustic#536:

rustic-cargo-add with a prefix command called read-from-minibuffer with erroneous arguments.

The current master produces this error message:

funcall-interactively: Wrong type argument: keymapp, " add "

This is due to the line (read-from-minibuffer "Cargo add command: " (rustic-cargo-bin) " add "), which makes " add " a third argument to read-from-minibuffer. I guess it's suppose to just be concated with rustic-cargo-bin.

This commit implements that and also DRY's the code by storing the base command in a let binding.

Original description by @sigvei in brotzeit/rustic#536:

rustic-cargo-add with a prefix command called read-from-minibuffer with erroneous arguments.

The current master produces this error message:

funcall-interactively: Wrong type argument: keymapp, " add "

This is due to the line (read-from-minibuffer "Cargo add command: " (rustic-cargo-bin) " add "), which makes " add " a third argument to read-from-minibuffer. I guess it's suppose to just be concated with rustic-cargo-bin.

This commit implements that and also DRY's the code by storing the base command in a let binding.
@CeleritasCelery CeleritasCelery merged commit a2ee3cf into main May 19, 2024
4 checks passed
@CeleritasCelery CeleritasCelery deleted the cargo-add-prefix branch May 19, 2024 19:14
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.

1 participant