From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7F9B7158095 for ; Thu, 25 Aug 2022 23:00:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E3ABFE0828; Thu, 25 Aug 2022 23:00:32 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 624B5E0828 for ; Thu, 25 Aug 2022 23:00:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5E7CF3411CA for ; Thu, 25 Aug 2022 23:00:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C8678569 for ; Thu, 25 Aug 2022 23:00:29 +0000 (UTC) From: "Maciej Barć" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" Message-ID: <1661466776.00d36cb2aca7777193d8ffffea4e85a4e000fdca.xgqt@gentoo> Subject: [gentoo-commits] proj/company-ebuild:master commit in: / X-VCS-Repository: proj/company-ebuild X-VCS-Files: company-ebuild-keywords.el X-VCS-Directories: / X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: 00d36cb2aca7777193d8ffffea4e85a4e000fdca X-VCS-Branch: master Date: Thu, 25 Aug 2022 23:00:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c8e274b3-3372-46a8-911e-89be862c506c X-Archives-Hash: cd056d4fb745144dd63930af217630a3 commit: 00d36cb2aca7777193d8ffffea4e85a4e000fdca Author: Maciej Barć gentoo org> AuthorDate: Thu Aug 25 22:32:56 2022 +0000 Commit: Maciej Barć gentoo org> CommitDate: Thu Aug 25 22:32:56 2022 +0000 URL: https://gitweb.gentoo.org/proj/company-ebuild.git/commit/?id=00d36cb2 company-ebuild-keywords.el: make most of dynamic vars buffer-local Signed-off-by: Maciej Barć gentoo.org> 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 ()