[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master ef302af 070/135: Added more docstrings
From: |
Ian Dunn |
Subject: |
[elpa] master ef302af 070/135: Added more docstrings |
Date: |
Mon, 17 Feb 2020 10:52:55 -0500 (EST) |
branch: master
commit ef302af917f119db7088d4473be33f34a865f1d5
Author: Ian D <address@hidden>
Commit: Ian D <address@hidden>
Added more docstrings
---
org-edna.el | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 67 insertions(+), 5 deletions(-)
diff --git a/org-edna.el b/org-edna.el
index dd8ba6c..380ab87 100644
--- a/org-edna.el
+++ b/org-edna.el
@@ -418,8 +418,9 @@ Example:
:END:
#+END_SRC
-In the above example, Heading 5 will be blocked until Heading 1, Heading
-3, and Heading 4 are marked DONE, while Heading 2 is ignored."
+In the above example, Heading 5 will be blocked until Heading 1,
+Heading 3, and Heading 4 are marked DONE, while Heading 2 is
+ignored."
(org-with-wide-buffer
(let ((markers))
(while (org-up-heading-safe)
@@ -438,7 +439,8 @@ Finds the heading given by OLP in FILE. Both arguments are
strings.
:END:
#+END_SRC
-Test will block if the heading \"path/to/heading\" in \"test.org\" is not
DONE."
+Test will block if the heading \"path/to/heading\" in
+\"test.org\" is not DONE."
(let ((marker (org-find-olp (cons file (split-string-and-unquote olp "/")))))
(when (markerp marker)
(list marker))))
@@ -446,17 +448,77 @@ Test will block if the heading \"path/to/heading\" in
\"test.org\" is not DONE."
;; TODO: Clean up the buffer when it's finished
(defun org-edna-finder/file (file)
+ "Find a file by name.
+
+The `file' finder finds a single file, specified as a string.
+The returned target will be the minimum point in the file.
+
+#+BEGIN_SRC org
+,* TODO Test
+ :PROPERTIES:
+ :BLOCKER: file(\"~/myfile.org\") headings?
+ :END:
+#+END_SRC
+
+Here, \"Test\" will block until myfile.org is clear of headlines.
+
+Note that with the default condition, `file' won't work."
;; If there isn't a buffer visiting file, then there's no point in having a
- ;; marker to the start of the file.
+ ;; marker to the start of the file, so use `find-file-noselect'.
(with-current-buffer (find-file-noselect file)
(list (point-min-marker))))
(defun org-edna-finder/org-file (file)
- "Finds FILE in `org-directory'."
+ "Find a file in `org-directory'.
+
+A special form of `file', `org-file' will find FILE (a string) in
+`org-directory'.
+
+#+BEGIN_SRC org
+,* TODO Test
+ :PROPERTIES:
+ :BLOCKER: org-file(\"test.org\")
+ :END:
+#+END_SRC
+
+Note that the file still requires an extension."
(with-current-buffer (find-file-noselect (expand-file-name file
org-directory))
(list (point-min-marker))))
(defun org-edna-finder/chain-find (&rest options)
+ "Find a target as org-depend does.
+
+Identical to the chain argument in org-depend, chain-find selects its single
+target using the following method:
+
+1. Creates a list of possible targets
+2. Filters the targets from Step 1
+3. Sorts the targets from Step 2
+
+After this is finished, chain-find selects the first target in the list and
+returns it.
+
+One option from each of the following three categories may be used; if more
than
+one is specified, the last will be used.
+
+*Selection*
+
+- from-top: Select siblings of the current headline, starting at the top
+- from-bottom: As above, but from the bottom
+- from-current: Selects siblings, starting from the headline (wraps)
+- no-wrap: As above, but without wrapping
+
+*Filtering*
+
+- todo-only: Select only targets with TODO state set that isn't a
DONE state
+- todo-and-done-only: Select all targets with a TODO state set
+
+*Sorting*
+
+- priority-up: Sort by priority, highest first
+- priority-down: Same, but lowest first
+- effort-up: Sort by effort, highest first
+- effort-down: Sort by effort, lowest first"
;; sortfun - function to use to sort elements
;; filterfun - Function to use to filter elements
;; Both should handle positioning point
- [elpa] master 7618794 066/135: Added in-buffer settings and new sections to Documentation, (continued)
- [elpa] master 7618794 066/135: Added in-buffer settings and new sections to Documentation, Ian Dunn, 2020/02/17
- [elpa] master 9a6ba17 071/135: Fixed up documentation, Ian Dunn, 2020/02/17
- [elpa] master d493232 077/135: Added support for interactive editing of blockers and triggers, Ian Dunn, 2020/02/17
- [elpa] master 0aa0bf8 082/135: Don't present variables for keyword completion, Ian Dunn, 2020/02/17
- [elpa] master f265a6b 102/135: Fixed error reporting, Ian Dunn, 2020/02/17
- [elpa] master 9a38d60 050/135: Fixed chain-find and planning actions, Ian Dunn, 2020/02/17
- [elpa] master 836feb4 062/135: Fixed actions and documentation, Ian Dunn, 2020/02/17
- [elpa] master 24a0228 059/135: Added tests for actions, Ian Dunn, 2020/02/17
- [elpa] master 0b0cb67 063/135: Use org source blocks instead of example blocks in documentation, Ian Dunn, 2020/02/17
- [elpa] master e6f88e7 069/135: Silenced byte-compiler, Ian Dunn, 2020/02/17
- [elpa] master ef302af 070/135: Added more docstrings,
Ian Dunn <=
- [elpa] master 00abd93 073/135: Fixed tests copyright string, Ian Dunn, 2020/02/17
- [elpa] master c442e77 076/135: Only require subr-x during compilation, Ian Dunn, 2020/02/17
- [elpa] master 311e980 065/135: Compile targets before running tests, Ian Dunn, 2020/02/17
- [elpa] master 9d26430 072/135: Fixed copyright strings., Ian Dunn, 2020/02/17
- [elpa] master f83f47b 074/135: Updated documentation for ELPA release, Ian Dunn, 2020/02/17
- [elpa] master 88b59b3 089/135: Added section to documentation for changes, Ian Dunn, 2020/02/17
- [elpa] master 7e6913b 091/135: Fixed "Setting the Properties" custom_id and title, Ian Dunn, 2020/02/17
- [elpa] master 8e20fb9 098/135: Fixed failing effort test, Ian Dunn, 2020/02/17
- [elpa] master 3c6b66c 075/135: Added next-sibling-wrap finder, Ian Dunn, 2020/02/17
- [elpa] master 0503710 080/135: Bumped version to beta1, Ian Dunn, 2020/02/17