branch: elpa/flycheck
commit 019af814f40e5c72913d01c40efacdb23aa0575a
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>
Make flycheck-protoc-import-path buffer-local
Allow different protobuf projects to have different import paths
by making the variable automatically buffer-local.
Closes #2089
---
flycheck.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/flycheck.el b/flycheck.el
index 2479af79d7..b75b1f8ad0 100644
--- a/flycheck.el
+++ b/flycheck.el
@@ -10663,6 +10663,7 @@ are relative to the file being checked."
:type '(repeat (directory :tag "Import directory"))
:safe #'flycheck-string-list-p
:package-version '(flycheck . "32"))
+(make-variable-buffer-local 'flycheck-protoc-import-path)
(flycheck-define-checker protobuf-protoc
"A protobuf syntax checker using the protoc compiler.