summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2023-12-15 17:12:55 +0100
committerJonas Bernoulli <jonas@bernoul.li>2023-12-15 17:12:55 +0100
commit9db5761afa82ddefd7a28f11d3ab9ee16c0d5d97 (patch)
treef69f7fb710167732442086364e81c7cd38f587a1
parent864ac4ba14872f33fa5964ea41f49da817aa465a (diff)
Drop support for the legacy %* argument
-rw-r--r--README.md2
-rw-r--r--llama.el12
2 files changed, 3 insertions, 11 deletions
diff --git a/README.md b/README.md
index 8e7b2cd..e86bc0c 100644
--- a/README.md
+++ b/README.md
@@ -21,8 +21,6 @@ their names have to begin with `&`. Symbol `&*` specifies extra
Instead of `%1`, the shorthand `%` can be used; but that should
only be done if it is the only argument, and using both `%1` and
`%` is not allowed. Likewise `&` can be substituted for `&1`.
-Finally, for backward compatibility, `%*` can be used in place
-of `&*`, but only if there are no optional arguments.
Instead of:
diff --git a/llama.el b/llama.el
index e56ba69..94babbf 100644
--- a/llama.el
+++ b/llama.el
@@ -48,8 +48,6 @@
;; Instead of `%1', the shorthand `%' can be used; but that should
;; only be done if it is the only argument, and using both `%1' and
;; `%' is not allowed. Likewise `&' can be substituted for `&1'.
-;; Finally, for backward compatibility, `%*' can be used in place
-;; of `&*', but only if there are no optional arguments.
;; Instead of:
;;
@@ -91,8 +89,6 @@ their names have to begin with `&'. Symbol `&*' specifies extra
Instead of `%1', the shorthand `%' can be used; but that should
only be done if it is the only argument, and using both `%1' and
`%' is not allowed. Likewise `&' can be substituted for `&1'.
-Finally, for backward compatibility, `%*' can be used in place
-of `&*', but only if there are no optional arguments.
Instead of:
@@ -129,11 +125,9 @@ It also looks a bit like #\\='function."
((not symbol)
(list (intern (format "_%s%s" (if optional "&" "%") pos))))
((eq (aref (symbol-name symbol) 0) ?%)
- (cond (optional
- (error "%s cannot follow optional argument" symbol))
- ((eq symbol '%*)
- (list '&rest symbol))
- ((list symbol))))
+ (when optional
+ (error "`%s' cannot follow optional arguments" symbol))
+ (list symbol))
((eq symbol '&*)
(list '&rest symbol))
(optional