Skip to content

Property :inherit keyword argument not working #460

@Stewmath

Description

@Stewmath

OS/platform

Arch Linux

Emacs version and provenance

Emacs-wayland v29.3 from Arch repositories

Emacs command

COLORTERM=truecolor emacs -nw

Org version and provenance

Org commit: f398724bd53eb6af3cf4187c864ec6f89a22ef59

From doom emacs

org-ql package version and provenance

fcb4e3e

Actions taken

I am probably missing something obvious here. But

  • I created a heading with the property "QL_DEPTH: 3"
  • I ran (org-ql-search (current-buffer) '(property "QL_DEPTH")), which worked correctly
  • I tried (org-ql-search (current-buffer) '(property "QL_DEPTH" :inherit t)), which returned no results
  • I tried (org-ql--predicate-property "QL_DEPTH" :inherit t) for testing purposes which produced an error (see backtrace)

Observed results

The :inherit keyword argument either caused errors or produced no results, even when there were results when :inherit wasn`t specified.

Expected results

The :inherit keyword argument should produce results

Backtrace

Results of (org-ql--predicate-property "QL_DEPTH" :inherit t):

Debugger entered--Lisp error: (error "Keyword argument t not one of (:inherit)")
  error("Keyword argument %s not one of (:inherit)" t)
  org-ql--predicate-property("QL_DEPTH" :inherit t)
  eval-expression((org-ql--predicate-property "QL_DEPTH" :inherit t) nil nil 127)
  funcall-interactively(eval-expression (org-ql--predicate-property "QL_DEPTH" :inherit t) nil nil 127)
  command-execute(eval-expression)

Removing t avoided the error but did not produce the correct result.

Etc.

Setting org-use-property-inheritance to t also had no effect on the queries.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions