[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/transient c9d46a40ee: transient-scope: Deal with PREFIX
From: |
Jonas Bernoulli |
Subject: |
[elpa] externals/transient c9d46a40ee: transient-scope: Deal with PREFIXES beginning with non-existent prefix |
Date: |
Tue, 3 Dec 2024 17:10:00 -0500 (EST) |
branch: externals/transient
commit c9d46a40ee66932ca118e48bdda63f89d1de9ef9
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
transient-scope: Deal with PREFIXES beginning with non-existent prefix
---
lisp/transient.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/transient.el b/lisp/transient.el
index e14cbf2d40..4af1f48bda 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -3814,7 +3814,8 @@ If no prefix matches, return nil."
(and-let* ((obj transient--prefix))
(and (memq (oref obj command) prefixes) obj)))))
(oref obj scope)
- (oref (transient--init-prefix (car prefixes)) scope)))
+ (and (get (car prefixes) 'transient--prefix)
+ (oref (transient--init-prefix (car prefixes)) scope))))
(and-let* ((obj (transient-prefix-object)))
(oref obj scope))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/transient c9d46a40ee: transient-scope: Deal with PREFIXES beginning with non-existent prefix,
Jonas Bernoulli <=