Skip to content

Commit

Permalink
Properly use (interactive)
Browse files Browse the repository at this point in the history
  • Loading branch information
mekeor committed Dec 12, 2024
1 parent f0eeac6 commit 1754b21
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lean4-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@ FILE-NAME."

(defun lean4-execute (&optional arg)
"Execute Lean in the current buffer with an optional argument ARG."
(interactive)
(when (called-interactively-p 'any)
(setq arg (read-string "arg: " arg)))
(interactive "sArgument to Lean4 executable: ")
(let* ((use-lake (lean4-lake-find-dir))
(default-directory (if use-lake (lean4-lake-find-dir)
default-directory))
Expand Down

0 comments on commit 1754b21

Please sign in to comment.