diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2021-12-10 00:49:21 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2021-12-10 00:49:21 +0100 |
| commit | 7f11b354dfb9a87e2995600b937ef7e95191356f (patch) | |
| tree | ad9a0818156f7b8942482874587996ce16f37ef1 /cape.el | |
| parent | c0343a247ce99cd56d49c77c6fecae4f89fdda12 (diff) | |
cape-company-capf: Remove symbol restriction
Diffstat (limited to 'cape.el')
| -rw-r--r-- | cape.el | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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)) |
