Docs: (defpred.org) Fix typos
Thanks to Alain M. Lafon (@munen).
This commit is contained in:
commit
7c8cd41052
1 changed files with 3 additions and 3 deletions
|
|
@ -51,7 +51,7 @@ Enter =org-ql= custom search predicates. Let's start simple, by defining a pred
|
||||||
:body (property "person" name))
|
:body (property "person" name))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Now let's see what results we get for searching this file for entries about Bob:
|
Now, let's see what results we get for searching this file for entries about Bob:
|
||||||
|
|
||||||
#+BEGIN_SRC elisp :results list :exports both :cache yes
|
#+BEGIN_SRC elisp :results list :exports both :cache yes
|
||||||
(org-ql-query :select '(org-get-heading :no-tags)
|
(org-ql-query :select '(org-get-heading :no-tags)
|
||||||
|
|
@ -77,7 +77,7 @@ Hmm, looks like we need to remind Bob to wash his mug and take some mints after
|
||||||
|
|
||||||
#+END_EXAMPLE
|
#+END_EXAMPLE
|
||||||
|
|
||||||
Nothing? Oh, right, Alice's entries use the ~:personAlice:~ tag, so we'll also need to also search those kind of entries. Let's make the predicate do that too:
|
Nothing? Oh, right, Alice's entries use the ~:personAlice:~ tag, so we'll also need to search those kind of entries. Let's make the predicate do that, too:
|
||||||
|
|
||||||
#+BEGIN_SRC elisp :results silent :exports code
|
#+BEGIN_SRC elisp :results silent :exports code
|
||||||
(org-ql-defpred person (name)
|
(org-ql-defpred person (name)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue