[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 04d3766 14/38: config the company-yasnippet-doc buffer-fil

From: Dmitry Gutov
Subject: [elpa] master 04d3766 14/38: config the company-yasnippet-doc buffer-file-name
Date: Sat, 25 Jul 2020 19:51:13 -0400 (EDT)

branch: master
commit 04d3766d27b06260769ba47f7fb513ff0229c093
Author: Stephen <41671631+taigacute@users.noreply.github.com>
Commit: GitHub <noreply@github.com>

    config the company-yasnippet-doc buffer-file-name
 company-yasnippet.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/company-yasnippet.el b/company-yasnippet.el
index 14ed8e3..a8c4d36 100644
--- a/company-yasnippet.el
+++ b/company-yasnippet.el
@@ -109,6 +109,7 @@ It has to accept one argument: the snippet's name.")
   (let ((template (get-text-property 0 'yas-template arg))
         (mode major-mode))
     (with-current-buffer (company-doc-buffer)
+      (setq-local buffer-file-name "company-yasnippet-doc")
       (yas-minor-mode 1)
       (yas-expand-snippet (yas--template-content template))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]