-
Notifications
You must be signed in to change notification settings - Fork 88
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
proof-prog-name-ask
interacts poorly with tab-completion (especially on Windows)
#86
Comments
Wouldn't stripping final spaces work? Currently we use I think the original intent was that you could pass arguments to the prover using |
Indeed arguments should be passed via proof-prog-args now. If we allow only P. 2016-07-05 17:58 GMT+02:00 Clément Pit--Claudel notifications@github.com:
|
Stripping trailing spaces should be fine, unless want to support the use case of having trailing spaces in the executable name. |
I don't :) |
When I set
proof-prog-name-ask
to"non-nil"
, I get asked about the prover name. If I change it, and tab-complete tod:/Documents/GitHub/coq-8.5-ltacprof/bin/coqtop.exe
(note the trailing space that Emacs automatically inserts), then I get:It seems that PG thinks that the trailing whitespace is part of the filename. I propose that trailing whitespace should be stripped from the executable name when it ends in
.sh
,.exe
,.byte
, or.opt
(or, more generally, when the executable does not exist, but stripping trailing whitespace results in an existing executable).By a happy accident, this only occurs frequently on Windows, where
coqtop.exe
is unique, and not on linux, wherecoqtop
exists but is not unique, becausecoqtop.byte
andcoqtop.opt
also exist.The text was updated successfully, but these errors were encountered: