-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Emacs: neil.el should work with compound commands #247
Emacs: neil.el should work with compound commands #247
Conversation
98fa7a2
to
cfc9cc4
Compare
cfc9cc4
to
0227ef3
Compare
cd22f91
to
983488a
Compare
983488a
to
cb36308
Compare
I forgot that it could be not only 'clj' but 'clojure' as well
97c5c90
to
b0be3e5
Compare
Could you maybe explain the fix? Why is there a specific regex about clj/clojure? |
Hmm... good point. So, basically, I'm trying to resolve the executable path, i.e. if it's set to "clj -M:neil", it should become something like "/usr/bin/clj -M:neil". But I suppose I can make it work for any generic command - trying to resolve the first part of it. |
Suggested-by: Michiel Borkent <[email protected]> babashka#247 (comment)
595c865
to
c328615
Compare
@agzam Just in case, |
executable-find pattern is quite common for this kind of cases, shell-commands may fail if:
executable-find helps with:
when you run I don't think it's an overcomplication worth simplifying. |
in this case, most likely it isn't in
Ok, but if we want to avoid the ambiguity and other shell-related problems,
or you don't get it at all :) An alternative solution would be to use two defcustoms - one for the command itself and another for (optional) args. Like some other Emacs packages do. |
Like I said: "I don't think it's an overcomplication worth simplifying.". If you disagree, please make another PR, we can even hold off merging this one until then. If it makes simpler, you can even do it in a nested PR. You do know how the saying goes: "Talk is cheap, send patches". I already spent a good chunk of my Saturday to fix a problem you pulled out of thin air, if the proposed solution is still not bringing any joy, please do improve it, I have no emotional attachment to this code, nor do I have any privilege to dictate how it should be structured. In short - I probably had good reasons to put that check in place, because things were failing for me otherwise. I don't remember the details anymore, but if you can prove that piece is really not needed - the best way to prove that is with code. Otherwise we may get bogged down debating for a long time about various ways things may or may not fail. |
@a13 upon revisiting my own comment, I just realized how awfully angry it may sound for the reader on the other side. I'm sorry, never was my intent. I just want to emphasize, there's no reluctance from me for any change - if you feel anything can be improved, of course, I will happily review any proposals, I just don't like mincing words when something can be better expressed with code. The last thing I would ever want is to make anyone feel discouraged. Cheers. |
This PR corresponds to Neil.el doesn't work if
neil-executable-path
is set to command with arguments, e.g.clj -M:neil
#245I have updated the CHANGELOG.md file with a description of the addressed issue.
I have considered whether I should add more tests covering the code I've changed.