summaryrefslogtreecommitdiffhomepage
path: root/lib/prog/jao-compilation.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2024-11-07 18:01:13 +0000
committerjao <jao@gnu.org>2024-11-07 18:01:13 +0000
commit4308710de811e3b4e2fb47f9024439df03e96b90 (patch)
treefb719224f99c57d6b2b9b0bd4257208f7d038dc4 /lib/prog/jao-compilation.el
parent5efb9fee7e72c8c514d08940e98f7eb24b90c374 (diff)
downloadelibs-4308710de811e3b4e2fb47f9024439df03e96b90.tar.gz
elibs-4308710de811e3b4e2fb47f9024439df03e96b90.tar.bz2
{if,when}-let deprecation in emacs 31
Diffstat (limited to 'lib/prog/jao-compilation.el')
-rw-r--r--lib/prog/jao-compilation.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/prog/jao-compilation.el b/lib/prog/jao-compilation.el
index c099701..5bea68e 100644
--- a/lib/prog/jao-compilation.el
+++ b/lib/prog/jao-compilation.el
@@ -67,7 +67,7 @@
;;;###autoload
(defun jao-compilation-root (&optional dir)
- (when-let ((rfn (jao-compilation-find-root (or dir (buffer-file-name))
+ (when-let* ((rfn (jao-compilation-find-root (or dir (buffer-file-name))
jao-compilation-dominating-rx)))
(let* ((default-directory (expand-file-name rfn))
(dir (file-name-directory rfn))
@@ -80,13 +80,13 @@
;;;###autoload
(defun jao-compilation-root-file ()
- (when-let ((dir (jao-compilation-root)))
+ (when-let* ((dir (jao-compilation-root)))
(car (directory-files dir nil jao-compilation-dominating-rx))))
;;;###autoload
(defun jao-find-compilation-root (dir)
(when (and (stringp dir) (file-exists-p dir))
- (when-let ((root (jao-compilation-root dir)))
+ (when-let* ((root (jao-compilation-root dir)))
(cons 'transient root))))
;;;###autoload