-
Notifications
You must be signed in to change notification settings - Fork 16
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
call dhall with "format" argument #13
Conversation
Is it worth keeping any backward compatibility here? I’d also like to change the type header to use |
dhall-mode.el
Outdated
(apply 'call-process dhall-format-command nil errbuf t (append dhall-format-options (list | ||
(buffer-file-name)))) | ||
(apply 'call-process dhall-command nil errbuf t (append dhall-format-options (list | ||
(buffer-file-name)))) |
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 feel like this should explicitly (cons "format" dhall-format-options)
rather than adding "format"
to the customizable options.
@sellout Thanks for the review! It would be nice to keep backward compatibility as I myself use an older version yet. |
The frustrating bit is that new versions require (or (run-command "dhall version") (run-command "dhall --version")) and then we can dispatch on the actual version. Whichever we use, should be defined on its own, so we can use it both for the formatting changes here as well as the type header changes. |
b35a075
to
07aae2f
Compare
I'm okay with keeping this PR open for a while or moving it to some specific branch until there's a new proper version released |
07aae2f
to
d0ce2ca
Compare
I made a slightly different change relating to this in 8405e7b - for now, if you set |
Can that be added to the documentation? It's not clear from reading the current documentation that setting the value to It took finding this issue, and then finding the above comment to understand how this variable is supposed to be used. |
Thanks @joneshf - done! |
That's wonderful! Thank you so much! |
Set the dhall format subcommand to match the new Dhall arguments
Fix #12