Skip to content

Commit

Permalink
Depend on Compat 28 and use file-name-concat in lean4-util.el
Browse files Browse the repository at this point in the history
Co-authored-by: Akira Komamura <[email protected]>
  • Loading branch information
mekeor and akirak committed Nov 26, 2024
1 parent 7bcbc92 commit a9eab22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lean4-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
;; Maintainer: Yury G. Kudryashov <[email protected]>
;; Created: Jan 09, 2014
;; Keywords: languages
;; Package-Requires: ((emacs "27.1") (magit-section "2.90.1") (lsp-mode "8.0.0"))
;; Package-Requires: ((emacs "27.1") (compat "28.1") (magit-section "2.90.1") (lsp-mode "8.0.0"))
;; URL: https://github.com/leanprover/lean4-mode
;; SPDX-License-Identifier: Apache-2.0
;; Version: 1.0.1
Expand Down
3 changes: 1 addition & 2 deletions lean4-util.el
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ First try to find an executable named `lean4-executable-name' in

(defun lean4-get-executable (exe-name)
"Return fullpath of lean executable EXE-NAME."
(let ((default-directory (lean4-get-rootdir)))
(expand-file-name exe-name (expand-file-name "bin"))))
(file-name-concat (lean4-get-rootdir) "bin" exe-name))

(defun lean4-whitespace-cleanup ()
"Delete trailing whitespace if `lean4-delete-trailing-whitespace' is t."
Expand Down

0 comments on commit a9eab22

Please sign in to comment.