Skip to content

Commit

Permalink
Fix wrong usage of let*
Browse files Browse the repository at this point in the history
  • Loading branch information
mekeor committed Dec 12, 2024
1 parent 313017e commit f0eeac6
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions lean4-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,9 @@ FILE-NAME."
(interactive)
(when (called-interactively-p 'any)
(setq arg (read-string "arg: " arg)))
(let* ((cc compile-command)
(dd default-directory)
(use-lake (lean4-lake-find-dir))
(default-directory (if use-lake (lean4-lake-find-dir) dd))
(let* ((use-lake (lean4-lake-find-dir))
(default-directory (if use-lake (lean4-lake-find-dir)
default-directory))
(target-file-name
(or
(buffer-file-name)
Expand All @@ -107,10 +106,7 @@ FILE-NAME."
(if use-lake (shell-quote-argument (expand-file-name (lean4-get-executable lean4-lake-name))) nil)
(shell-quote-argument (expand-file-name (lean4-get-executable lean4-executable-name)))
(or arg "")
(shell-quote-argument (expand-file-name target-file-name))))
;; restore old value
(setq compile-command cc)
(setq default-directory dd)))
(shell-quote-argument (expand-file-name target-file-name))))))

(defun lean4-refresh-file-dependencies ()
"Refresh the file dependencies.
Expand Down

0 comments on commit f0eeac6

Please sign in to comment.