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

rustic-compile always prompts for compile command #581

Open
holgerschurig opened this issue Oct 10, 2024 · 1 comment
Open

rustic-compile always prompts for compile command #581

holgerschurig opened this issue Oct 10, 2024 · 1 comment

Comments

@holgerschurig
Copy link

Experience behavior

The compile method of Rustic differs to the built-in one: it is always interactively prompting for a compile-command, no matter if it's called interactively or programmatically.

Example 1:

(rustic-compile "cargo build")

Here I provided my own compile command, and I expect the compilation to start immediately. But it doesn't, I'm getting needlessly asked for a compile-command. This makes (rustic-compile ...) unusable for scripting in Elisp.

Example 2:

(let ((compilation-read-command nil))
 (rustic-compile "cargo build"))

Even that generates a prompt for the interactive command.

Expected Behavior

Contrast this with

(compile "cargo build")

which doesn't prompt at all and just does what it is called to do: compile my source. That is: the provided optional argument overrides the variable compile-command, and makes it not prompt. The "not prompting" btw also happens when compilation-read-command is t.

Version of rustic-mode

This is on rustic-mode HEAD d765680

@holgerschurig
Copy link
Author

Oh, as brotzeit seems to be MIA, I'll open this issue at the fork.

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