From 80fa2366c4b8922f14946f3d82ff77e19f22e434 Mon Sep 17 00:00:00 2001 From: Philippe Vaucher Date: Wed, 7 Jan 2026 10:36:01 +0100 Subject: Avoid obsolete macros Emacs 31.1 treats when-let and cl-gensym as obsolete errors during byte-compilation, so switch to when-let* and gensym to keep snapshot CI green. --- projectile.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projectile.el b/projectile.el index e79a909..a22de25 100644 --- a/projectile.el +++ b/projectile.el @@ -1101,7 +1101,7 @@ is cleared when there is no current project (unless you give a prefix argument)." (interactive "P") (setq projectile-project-root-cache (make-hash-table :test 'equal)) - (when-let ((project-root + (when-let* ((project-root (if prompt (completing-read "Remove cache for: " (hash-table-keys projectile-projects-cache)) @@ -4147,7 +4147,7 @@ anaphora.el." (if (null clauses) nil (let ((cl1 (car clauses)) - (sym (cl-gensym))) + (sym (gensym))) `(let ((,sym ,(car cl1))) (if ,sym (if (null ',(cdr cl1)) -- cgit v1.0