Skip to content

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

Merged
CeleritasCelery merged 1 commit intomainfrom
cargo-add-prefix
May 19, 2024
Merged

syntax error in rustic-cargo-add with prefix argument#10
CeleritasCelery merged 1 commit intomainfrom
cargo-add-prefix

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
@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