summaryrefslogtreecommitdiffhomepage
path: root/lib/prog/jao-compilation.el
diff options
context:
space:
mode:
Diffstat (limited to 'lib/prog/jao-compilation.el')
-rw-r--r--lib/prog/jao-compilation.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/prog/jao-compilation.el b/lib/prog/jao-compilation.el
index 5bea68e..42332cd 100644
--- a/lib/prog/jao-compilation.el
+++ b/lib/prog/jao-compilation.el
@@ -1,6 +1,6 @@
;;; jao-compilation.el --- utilities to lauch compilations -*- lexical-binding: t; -*-
-;; Copyright (C) 2020, 2021, 2022 jao
+;; Copyright (C) 2020, 2021, 2022, 2025, 2026 jao
;; Author: jao <mail@jao.io>
;; Keywords: convenience
@@ -33,7 +33,7 @@
(let (result)
(dolist (v jao-compilation-environment result)
(let ((vv (getenv v)))
- (when vv (add-to-list 'result (format "%s=%s" v vv)))))))
+ (when vv (push (format "%s=%s" v vv) result))))))
;;;###autoload
(defun jao-compilation-add-dominating (&rest fs)
@@ -68,7 +68,7 @@
;;;###autoload
(defun jao-compilation-root (&optional dir)
(when-let* ((rfn (jao-compilation-find-root (or dir (buffer-file-name))
- jao-compilation-dominating-rx)))
+ jao-compilation-dominating-rx)))
(let* ((default-directory (expand-file-name rfn))
(dir (file-name-directory rfn))
(rel-path (jao-path-relative-to dir default-directory)))
@@ -108,8 +108,8 @@
;;;###autoload
(defun jao-compilation-setup ()
(jao-compilation-add-dominating
- "Makefile" "makefile" "configure.ac" "bootstrap.sh" "aclocal.m4"
- "project.clj" "build.xml" "pom.xml" "setup.py" "stack.yaml")
+ "Makefile" "makefile" "configure.ac" "Cargo.toml"
+ "deps.edn" "project.clj" "build.xml" "pom.xml" "setup.py" "stack.yaml")
(with-eval-after-load "project"
(add-to-list 'project-find-functions #'jao-find-compilation-root t)))