From ae0faa69128ca0ec33576865d9d7a4d02c796f80 Mon Sep 17 00:00:00 2001 From: Leo Gaskin Date: Fri, 5 Jan 2024 05:59:43 +0100 Subject: [PATCH] Respect `package-lint-main-file' in parent file also --- elisp-check.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elisp-check.el b/elisp-check.el index ddc32f4..f0c4411 100644 --- a/elisp-check.el +++ b/elisp-check.el @@ -354,12 +354,12 @@ order to hook `byte-compile-file' into the CI message mechanism." (defun elisp-check-package-lint (&rest other) "Run a `package-lint-buffer' check on the current and OTHER buffers." - (let ((default-main-file (buffer-file-name))) + (let ((parent-main-file (or package-lint-main-file (buffer-file-name)))) (elisp-check--package-lint-buffer) (dolist (buffer other) (with-current-buffer buffer (let ((package-lint-main-file - (or package-lint-main-file default-main-file))) + (or package-lint-main-file parent-main-file))) (elisp-check--package-lint-buffer)))))) (defun elisp-check--package-lint-buffer ()