[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/company d5145006b9 3/3: Declare yas-prompt-functions
From: |
ELPA Syncer |
Subject: |
[elpa] externals/company d5145006b9 3/3: Declare yas-prompt-functions |
Date: |
Mon, 25 Apr 2022 07:57:27 -0400 (EDT) |
branch: externals/company
commit d5145006b948f93e673f439a766da01f636d39fc
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
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