[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/transient 3657117b14 2/7: transient--parse-suffix: Dete
From: |
Jonas Bernoulli |
Subject: |
[elpa] externals/transient 3657117b14 2/7: transient--parse-suffix: Detect when mandatory command is missing |
Date: |
Mon, 20 Feb 2023 09:29:17 -0500 (EST) |
branch: externals/transient
commit 3657117b147b589fe3e27d2a8e6d24fcb0fc1137
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
transient--parse-suffix: Detect when mandatory command is missing
This is the only value that must be specified using a positional
value as opposed to a keyword value.
Closes #234.
---
lisp/transient.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/transient.el b/lisp/transient.el
index 8beb5577b8..f5a7992907 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -1051,12 +1051,13 @@ example, sets a variable, use `transient-define-infix'
instead.
(eq (car-safe car) 'lambda))
(setq args (plist-put args :description pop)))
((and (symbolp car)
+ (not (keywordp car))
(not (commandp car))
(commandp (cadr spec)))
(setq args (plist-put args :description (macroexp-quote pop)))))
(cond
((keywordp car)
- (error "Need command, got %S" car))
+ (error "Need command, got `%s'" car))
((symbolp car)
(setq args (plist-put args :command (macroexp-quote pop))))
((and (commandp car)
- [elpa] externals/transient updated (45d66a559a -> 0204a24328), Jonas Bernoulli, 2023/02/20
- [elpa] externals/transient 3657117b14 2/7: transient--parse-suffix: Detect when mandatory command is missing,
Jonas Bernoulli <=
- [elpa] externals/transient f88cbbc57c 3/7: transient--parse-suffix: Differentiate command and desc lambda, Jonas Bernoulli, 2023/02/20
- [elpa] externals/transient 0204a24328 7/7: transient--parse-suffix: Define suffix aliases at load-time, Jonas Bernoulli, 2023/02/20
- [elpa] externals/transient 6ddd490203 6/7: Revert "transient--parse-suffix: Use consistent plist order", Jonas Bernoulli, 2023/02/20
- [elpa] externals/transient 342164c2b0 5/7: transient--parse-suffix: Avoid using desc lambda in command name, Jonas Bernoulli, 2023/02/20
- [elpa] externals/transient dd4e541f95 4/7: transient--parse-suffix: Use consistent plist order, Jonas Bernoulli, 2023/02/20
- [elpa] externals/transient 05801dcb54 1/7: manual: Fix inaccuracies in Suffix Specifications, Jonas Bernoulli, 2023/02/20