Skip to content

Commit f1eb1c1

Browse files
authored
Merge pull request #854 from fdeitylink/patch-1
Refactor `coq-detect-rocq-cli` to use `with-output-to-string`
2 parents 0683e96 + 9a009d7 commit f1eb1c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

coq/coq-system.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ On Windows you might need something like:
5959
"return non nil if the detected coq/rocq executable obeys the rocq CLI."
6060
(let* ((coq-command (or proof-prog-name (coq-autodetect-progname))))
6161
(condition-case nil
62-
(with-temp-buffer
63-
(apply 'process-file (list coq-command nil t))
64-
(string-match "Supported subcommands:" (buffer-string)))
62+
(string-match
63+
"Supported subcommands:"
64+
(with-output-to-string (process-file coq-command nil standard-output)))
6565
(error nil))))
6666

6767
(defun coq-detect-coqdep ()

0 commit comments

Comments
 (0)