diff options
| author | Omar Antolín <omar.antolin@gmail.com> | 2020-04-27 13:35:02 -0500 |
|---|---|---|
| committer | Omar Antolín <omar.antolin@gmail.com> | 2020-04-27 13:35:02 -0500 |
| commit | b63019aea34f266f7bfbf244b23005993a5d7305 (patch) | |
| tree | fa8188612e82c2c21aa0737e5f66f78fe87d6f54 /orderless.el | |
| parent | 436ef98b16e69bd296056b3b1202a7f2914c18a0 (diff) | |
Add missing (oops!) "forgiving funcall" function
Diffstat (limited to 'orderless.el')
| -rw-r--r-- | orderless.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/orderless.el b/orderless.el index ead96ea..82fbcd8 100644 --- a/orderless.el +++ b/orderless.el @@ -292,6 +292,10 @@ converted to a list of regexps according to the value of for string = (copy-sequence original) collect (orderless--highlight regexps string))) +(defun orderless--forgiving-funcall (fn &rest args) + "Call FN with as many ARGS as its arity allows." + (apply fn (cl-subseq args 0 (cdr (func-arity fn))))) + (defun orderless--component-regexps (pattern) "Build regexps to match PATTERN. Consults `orderless-style-dispatchers' and, if |
