emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Barthel <bch@online.de>
To: emacs-orgmode@gnu.org
Cc: adam@alphapapa.net
Subject: org-ql and inherited tags (?)
Date: Tue, 15 Aug 2023 22:19:52 +0200	[thread overview]
Message-ID: <87y1icoy6v.fsf@shell.onfire.org> (raw)

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


             reply	other threads:[~2023-08-15 20:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-15 20:19 Christian Barthel [this message]
2023-08-16  8:49 ` org-ql and inherited tags (?) Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y1icoy6v.fsf@shell.onfire.org \
    --to=bch@online.de \
    --cc=adam@alphapapa.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).