Skip to content

Commit

Permalink
Merge pull request #8 from emacs-rustic/fix-rustic-compile-error
Browse files Browse the repository at this point in the history
Fix error from rustic-compile
  • Loading branch information
CeleritasCelery authored May 17, 2024
2 parents 8d319e0 + b7c4037 commit e1069ee
Showing 1 changed file with 6 additions and 4 deletions.
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

0 comments on commit e1069ee

Please sign in to comment.