From b7c40374592c2e4c41bc686d38222809ec329013 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Mon, 18 Sep 2023 10:10:16 -0400 Subject: [PATCH] Fix error from rustic-compile Also address some cosmetic issues with code that emacs complained about. Fixes #528 Modified-by: Mark A. Hershberger --- rustic-compile.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/rustic-compile.el b/rustic-compile.el index bce6d79..d5ed649 100644 --- a/rustic-compile.el +++ b/rustic-compile.el @@ -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: @@ -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 @@ -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")