From 7f11b354dfb9a87e2995600b937ef7e95191356f Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Fri, 10 Dec 2021 00:49:21 +0100 Subject: cape-company-capf: Remove symbol restriction --- cape.el | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cape.el b/cape.el index c4eb04e..2a74ef3 100644 --- a/cape.el +++ b/cape.el @@ -884,12 +884,8 @@ If INTERACTIVE is nil the function acts like a capf." "Convert Company BACKEND function to Capf. VALID is the input comparator, see `cape--input-valid-p'. This feature is experimental." - (unless (symbolp backend) - (error "Backend must be a symbol")) - (let ((init (intern (format "cape--company-init:%s" backend)))) + (let ((init (make-variable-buffer-local (make-symbol "cape--company-init")))) (lambda () - (unless (boundp init) - (make-variable-buffer-local init)) (unless (symbol-value init) (cape--company-call backend 'init) (set init t)) -- cgit v1.0