Skip to content

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

Open
sigvei wants to merge 1 commit intobrotzeit:masterfrom
sigvei:patch-1
Open

syntax error in rustic-cargo-add with prefix argument#536
sigvei wants to merge 1 commit intobrotzeit:masterfrom
sigvei:patch-1

Conversation

@sigvei
Copy link

@sigvei sigvei commented Oct 17, 2023

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.

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

This version also DRY's the code by storing the base command in a let binding.
@LionyxML
Copy link

@brotzeit this is very simple and very useful, do you think you could review it in a near future?

Thanks @sigvei

@psibi
Copy link
Collaborator

psibi commented Mar 16, 2024

@LionyxML Unfortunately I have been not able to reach @brotzeit. I maintaining a temporary (hopefully) fork here: https://github.com/psibi/rustic

CeleritasCelery added a commit to emacs-rustic/rustic that referenced this pull request May 17, 2024
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.
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.

3 participants