branch: externals/company
commit d5145006b948f93e673f439a766da01f636d39fc
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>

    Declare yas-prompt-functions
---
 company-yasnippet.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/company-yasnippet.el b/company-yasnippet.el
index 21559617f8..4769516e68 100644
--- a/company-yasnippet.el
+++ b/company-yasnippet.el
@@ -116,10 +116,11 @@ It has to accept one argument: the snippet's name.")
   (let ((template (get-text-property 0 'yas-template arg))
         (mode major-mode)
         (file-name (buffer-file-name)))
+    (defvar yas-prompt-functions)
     (with-current-buffer (company-doc-buffer)
       (let ((buffer-file-name file-name))
         (yas-minor-mode 1)
-        (set (make-local-variable 'yas-prompt-functions) '(yas-no-prompt))
+        (setq-local yas-prompt-functions '(yas-no-prompt))
         (condition-case error
             (yas-expand-snippet (yas--template-content template))
           (error

Reply via email to