branch: externals/transient
commit b14f44e91341ca70c21946baf70162dd13a30310
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
Fix setting read-extended-command-predicate
---
lisp/transient.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lisp/transient.el b/lisp/transient.el
index 7448270ba8..c3cbf1984d 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -1225,10 +1225,10 @@ Also see
`transient-command-completion-not-suffix-only-p'.
Only use this alias as the value of the `command-predicate'
symbol property.")
-(static-if (and (boundp 'read-extended-command-predicate) ; since Emacs 28.1
- (not read-extended-command-predicate))
- (setq read-extended-command-predicate
- 'transient-command-completion-not-suffix-only-p))
+(when (and (boundp 'read-extended-command-predicate) ; since Emacs 28.1
+ (not read-extended-command-predicate))
+ (setq read-extended-command-predicate
+ 'transient-command-completion-not-suffix-only-p))
(defun transient-parse-suffix (prefix suffix)
"Parse SUFFIX, to be added to PREFIX.