summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2022-08-26 00:32:56 +0200
committerMaciej Barć <xgqt@gentoo.org>2022-08-26 00:32:56 +0200
commit00d36cb2aca7777193d8ffffea4e85a4e000fdca (patch)
treecf1a122165c3053b3c01cdb76e33ae7068a0fa62
parentcompany-ebuild-custom.el: add; enable customization of some features from com... (diff)
downloadcompany-ebuild-00d36cb2aca7777193d8ffffea4e85a4e000fdca.tar.gz
company-ebuild-00d36cb2aca7777193d8ffffea4e85a4e000fdca.tar.bz2
company-ebuild-00d36cb2aca7777193d8ffffea4e85a4e000fdca.zip
company-ebuild-keywords.el: make most of dynamic vars buffer-local
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
-rw-r--r--company-ebuild-keywords.el14
1 files 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 ()