-
Notifications
You must be signed in to change notification settings - Fork 12
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
Allow rustic-compile to accept a command argument #59
Conversation
Looking at the tests from the PR, this function was not intended to be an analog to The code is not entirely self-consistent, with this call trying to pass a command. But that code path is never reached. |
43a1e6b
to
a598553
Compare
Previous it required binding compilation-arguments to pass an arg to it.
a598553
to
9237c94
Compare
(while (eq (process-status proc) 'run) | ||
(sit-for 0.1)) | ||
(should (string= compilation-directory dir)) | ||
(let ((proc (rustic-recompile))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we doing rustic-recompile
here ? From a quick look the previous code doesn't seem to have it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The previous code does have it
rustic/test/rustic-compile-test.el
Line 98 in 0d79e4c
(let ((proc (rustic-recompile))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a new test for compiling interactively rather than via lisp, so the diff looks a little weird.
(compilation-read-command (or (car compilation-arguments) | ||
(rustic-compile-command))) | ||
(rustic-compile-command)))) | ||
(rustic-set-compilation-arguments command) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new behavior is nice!
Fixes #57