diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2023-12-15 17:12:55 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2023-12-15 17:12:55 +0100 |
| commit | 9db5761afa82ddefd7a28f11d3ab9ee16c0d5d97 (patch) | |
| tree | f69f7fb710167732442086364e81c7cd38f587a1 | |
| parent | 864ac4ba14872f33fa5964ea41f49da817aa465a (diff) | |
Drop support for the legacy %* argument
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | llama.el | 12 |
2 files changed, 3 insertions, 11 deletions
@@ -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: @@ -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 |
