From 00d36cb2aca7777193d8ffffea4e85a4e000fdca Mon Sep 17 00:00:00 2001 From: Maciej Barć Date: Fri, 26 Aug 2022 00:32:56 +0200 Subject: company-ebuild-keywords.el: make most of dynamic vars buffer-local MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- company-ebuild-keywords.el | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/company-ebuild-keywords.el b/company-ebuild-keywords.el index 3a4f516..c126f7a 100644 --- a/company-ebuild-keywords.el +++ b/company-ebuild-keywords.el @@ -141,16 +141,22 @@ ;; Dynamically collected keywords. (defvar company-ebuild--dynamic-keywords-eclasses nil) +(make-variable-buffer-local 'company-ebuild--dynamic-keywords-eclasses) (defvar company-ebuild--dynamic-keywords-functions nil) +(make-variable-buffer-local 'company-ebuild--dynamic-keywords-functions) -(defvar company-ebuild--dynamic-keywords-variables nil) - -(defvar company-ebuild--dynamic-keywords-use-flags nil) +(defvar company-ebuild--dynamic-keywords-licenses nil) +(make-variable-buffer-local 'company-ebuild--dynamic-keywords-licenses) (defvar company-ebuild--dynamic-keywords-packages nil) +;; ‘company-ebuild--dynamic-keywords-packages’ is left global. -(defvar company-ebuild--dynamic-keywords-licenses nil) +(defvar company-ebuild--dynamic-keywords-use-flags nil) +(make-variable-buffer-local 'company-ebuild--dynamic-keywords-use-flags) + +(defvar company-ebuild--dynamic-keywords-variables nil) +(make-variable-buffer-local 'company-ebuild--dynamic-keywords-variables) (defun company-ebuild--dynamic-keywords () -- cgit v1.2.3-65-gdbad