branch: elpa/recomplete
commit f8c94be7c9672d7e4a1d5eba3d1bb7141d454575
Author: Campbell Barton <[email protected]>
Commit: Campbell Barton <[email protected]>
Cleanup: use funcall instead of apply with symbol-function
funcall works directly with symbols and avoids constructing
an intermediate list.
---
recomplete.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/recomplete.el b/recomplete.el
index aed7e9c59a..0a86208916 100644
--- a/recomplete.el
+++ b/recomplete.el
@@ -630,7 +630,7 @@ step onto the next item)."
(recomplete--with-messages-as-list message-list
;; Needed in case the operation does multiple undo pushes.
(with-undo-amalgamate
- (apply (symbol-function fn-symbol) (list cycle-index
fn-cache))))))
+ (funcall fn-symbol cycle-index fn-cache)))))
(cond
((null result-choices)