emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-ql and inherited tags (?)
@ 2023-08-15 20:19 Christian Barthel
  2023-08-16  8:49 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Barthel @ 2023-08-15 20:19 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: adam

Hello,

i am using Emacs 29 and org-ql (20230525.1548).

I am seeing an error message that I tracked down
to setting org-use-property-inheritance.  Short
demo:

Here is a small org-file:

--8<---------------cut here---------------start------------->8---
## file: ~/.emacs_29_test/foo.org
* this
:PROPERTIES:
:ID:       123
:BLOCKEDBY: 123
:END:
--8<---------------cut here---------------end--------------->8---

An org-query like the one below works as expected.

--8<---------------cut here---------------start------------->8---
(setq org-agenda-files "~/.emacs_29_test/foo.org")
(org-ql-search org-agenda-files "(and (level <= 3) (property \"BLOCKEDBY\" \"123\"))")
;; this finds one item `this`
--8<---------------cut here---------------end--------------->8---

When I am setting `org-use-property-inheritance` and use the same query,
I get an error message:

--8<---------------cut here---------------start------------->8---
(setq org-use-property-inheritance '("DIR"))
(setq org-agenda-files "~/.emacs_29_test/foo.org")
(org-ql-search org-agenda-files "(and (level <= 3) (property \"BLOCKEDBY\" \"123\"))")


;; Error message:
byte-compile-log-warning: Invalid Org QL query: "Invalid Org QL query: \"‘DIR’ is a malformed function\", :warning", :error
--8<---------------cut here---------------end--------------->8---

I think that this might be related:
  <https://github.com/alphapapa/org-ql/issues/356>

Any idea whats going wrong?

-- 
Christian Barthel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-16  8:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-15 20:19 org-ql and inherited tags (?) Christian Barthel
2023-08-16  8:49 ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).