diff options
author | Leon Rische <leon.rische@me.com> | 2020-09-15 22:01:41 +0200 |
---|---|---|
committer | Leon Rische <leon.rische@me.com> | 2020-09-15 22:01:41 +0200 |
commit | e8235df8b63309fb5c0a0ee2b8e239cd166040c6 (patch) | |
tree | 799ed3d4c96ee604b93deee1d6f12411ffbf0373 | |
parent | c1449b7455601e34d0703c76b38eed43fbbebd05 (diff) |
Load utils by default
-rw-r--r-- | org-fc-awk.el | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/org-fc-awk.el b/org-fc-awk.el index 1f7989e..07c64cb 100644 --- a/org-fc-awk.el +++ b/org-fc-awk.el @@ -41,7 +41,7 @@ With the '-L' option, 'find' follows symlinks." ("created_property" . ,org-fc-created-property) ("review_data_drawer" . ,org-fc-review-data-drawer))) -(cl-defun org-fc-awk--command (file &optional &key variables utils input) +(cl-defun org-fc-awk--command (file &optional &key variables input) "Generate the shell command for calling awk. The script is called on FILE with (key . value) pairs VARIABLES. If UTILS is set to a non-nil value, the shared util file is @@ -52,11 +52,8 @@ file (absolute path) as input." (lambda (kv) (format "-v %s=%s" (car kv) (cdr kv))) variables " ") - " " - (if utils - (concat "-f " - (expand-file-name "awk/utils.awk" org-fc-source-path) " ")) - (concat "-f " (expand-file-name file org-fc-source-path)) + " -f " (expand-file-name "awk/utils.awk" org-fc-source-path) + " -f " (expand-file-name file org-fc-source-path) " " input)) (defun org-fc-awk--pipe (&rest commands) @@ -98,7 +95,6 @@ ITAGS and LTAGS are strings `\":tag1:tag2:\"'" (org-fc-awk--xargs (org-fc-awk--command "awk/index.awk" - :utils t :variables (org-fc-awk--indexer-variables))))))) (if (string-prefix-p "(" output) (org-fc-awk-flatten-index @@ -124,7 +120,6 @@ Return nil there is no history file." (shell-command-to-string (org-fc-awk--command "awk/stats_reviews.awk" - :utils t :input org-fc-review-history-file :variables `(("min_box" . ,org-fc-stats-review-min-box)))))) (if (string-prefix-p "(" output) |