Dynamic block columns don't respect property inheritance
- Dominant language
- Emacs Lisp
- Stars
- 1.6k
- Forks
- 120
- PR merge metrics
- No merged PRs in 30d
Description
### OS/platform
openSUSE Leap 15.6
### Emacs version and provenance
Emacs version 29.4
Installed via package manager
### Emacs command
KRunner -> "emacs"
### Org version and provenance
9.6.15 (built-in)
### org-ql package version and provenance
20240222.200
### Actions taken
Originally, the problem was noticed in a more complex setup where I am setting up meetings by pulling in a dynamic block with previous tasks per meeting attendee. Following a discussion with alphapapa on reddit, he came up with a simple reprex that I have expanded below to demonstrate the problem.
### Observed results
In the following example the query is respecting property inheritance of the CATEGORY property, but the shown column is not. The category column should show "food" for both filtered items.
```
# Local Variables:
# org-use-property-inheritance: ("CATEGORY")
# End:
#+begin: org-ql :query (property "CATEGORY" "food") :columns (heading ((property "CATEGORY") "category"))
| Heading | category |
|---------+----------|
| Food | food |
| Bread | |
#+end
* TODO Food
:PROPERTIES:
:CATEGORY: food
:END:
** TODO Bread
** TODO Fork
:PROPERTIES:
:CATEGORY: utensils
:END:
```
### Expected results
In the example posted above, the result should show "food" for both items in the category column.
```
#+begin: org-ql :query (property "CATEGORY" "food") :columns (heading ((property "CATEGORY") "category"))
| Heading | category |
|---------+----------|
| Food | food |
| Bread | food |
#+end
```
### Backtrace
_No response_
### Etc.
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.