From 08f56af0822d6f0d443e280909f8db08fa519f86 Mon Sep 17 00:00:00 2001 From: Sibi Prabakaran Date: Fri, 15 Nov 2024 12:26:26 +0530 Subject: [PATCH 1/2] Fix some documentation --- justl.el | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/justl.el b/justl.el index 26c9ad9..3d1e70b 100644 --- a/justl.el +++ b/justl.el @@ -344,7 +344,7 @@ Error matching regexes from compile.el are removed." PROCESS-NAME is an identifier for the process. Default to \"just\". RECIPE-NAME is the name of the recipe. -ARGS is a ist of arguments." +ARGS is a list of arguments." (when (equal process-name "") (setq process-name justl-executable)) (let ((buffer-name (justl--recipe-output-buffer recipe-name)) @@ -672,11 +672,10 @@ is not executed." recipe-name)))) (justl--exec justl-executable - recipe-name + recipe-name ; Buffer name (append (transient-args 'justl-help-popup) - (cons - recipe-name - (split-string user-args " ")))))) + (list recipe-name) + (split-string user-args " "))))) (defun justl-go-to-recipe () "Go to the recipe on justfile." From 6779df10ad496a6afadd2987df9dd09f7d75eae1 Mon Sep 17 00:00:00 2001 From: Sibi Prabakaran Date: Fri, 15 Nov 2024 12:29:53 +0530 Subject: [PATCH 2/2] More roboust justfile detection --- justl.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/justl.el b/justl.el index 3d1e70b..40b12b2 100644 --- a/justl.el +++ b/justl.el @@ -171,7 +171,7 @@ NAME is the buffer name." Returns the absolute path if file exists or nil if no path was found." (cl-flet* - ((is-justfile (s) (string= "justfile" (downcase s))) + ((is-justfile (s) (s-ends-with? "justfile" s t)) (any-justfile (d) (seq-find #'is-justfile (directory-files d)))) (when-let ((location (locate-dominating-file dir #'any-justfile))) (expand-file-name (any-justfile location) location))))