summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'company-ebuild.el')
-rw-r--r--company-ebuild.el12
1 files changed, 5 insertions, 7 deletions
diff --git a/company-ebuild.el b/company-ebuild.el
index 9c857e2..7a1b51a 100644
--- a/company-ebuild.el
+++ b/company-ebuild.el
@@ -142,15 +142,13 @@ FILE-PATH is the location from which we start searching for repository root."
(file-exists-p file-path)
(locate-dominating-file file-path "profiles/repo_name")))
-(defun company-ebuild--find-eclass-files (file-path)
+(defun company-ebuild--find-eclass-files (repo-root)
"Return found Eclass files.
-FILE-PATH is the location from which we start searching for Eclass files."
- (let ((repo-root
- (company-ebuild--find-repo-root file-path)))
- (and repo-root
- (directory-files
- (expand-file-name "eclass" repo-root) t ".*\\.eclass" t))))
+REPO-ROOT is the location from which we start searching for Eclass files."
+ (and repo-root
+ (directory-files
+ (expand-file-name "eclass" repo-root) t ".*\\.eclass" t)))
(defun company-ebuild--regenerate-dynamic-keywords-eclasses ()
"Set new content of the ‘company-ebuild--dynamic-keywords’ Eclass variables."