Skip to content
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

Fix error from rustic-compile #8

Merged
merged 1 commit into from
May 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions rustic-compile.el
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

;; Unlike compile.el, rustic makes use of a non dumb terminal in order to receive
;; all ANSI control sequences, which get translated by xterm-color.
;; This file also adds a derived compilation mode. Error matching regexes from
;; This file also adds a derived compilation mode. Error matching regexes from
;; compile.el are removed.

;;; Code:
Expand Down Expand Up @@ -301,6 +301,7 @@ ARGS is a plist that affects how the process is run.
(unless (plist-get args :no-display)
(funcall rustic-compile-display-method buf))
(with-current-buffer buf
(setq compilation--start-time (float-time))
(let ((inhibit-read-only t))
(insert (format "%s \n" (s-join " " command))))
(rustic-make-process :name process
Expand Down Expand Up @@ -554,9 +555,10 @@ buffer."
(defun rustic-compile (&optional arg)
"Compile rust project.

If `compilation-read-command' is non-nil or if called with prefix
argument ARG then read the command in the minibuffer. Otherwise
use `rustic-compile-command'.
If the variable `compilation-read-command' is non-nil or if
`rustic-compile` is called with prefix argument ARG then read the
command in the minibuffer. Otherwise use
`rustic-compile-command'.

In either store the used command in `compilation-arguments'."
(interactive "P")
Expand Down
Loading