Skip to content

Commit 80fa236

Browse files
committed
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.
1 parent 72f3c5f commit 80fa236

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projectile.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ is cleared when there is no current project (unless you give a prefix
11011101
argument)."
11021102
(interactive "P")
11031103
(setq projectile-project-root-cache (make-hash-table :test 'equal))
1104-
(when-let ((project-root
1104+
(when-let* ((project-root
11051105
(if prompt
11061106
(completing-read "Remove cache for: "
11071107
(hash-table-keys projectile-projects-cache))
@@ -4147,7 +4147,7 @@ anaphora.el."
41474147
(if (null clauses)
41484148
nil
41494149
(let ((cl1 (car clauses))
4150-
(sym (cl-gensym)))
4150+
(sym (gensym)))
41514151
`(let ((,sym ,(car cl1)))
41524152
(if ,sym
41534153
(if (null ',(cdr cl1))

0 commit comments

Comments
 (0)