Handle the case when org-use-property-inheritance is a list of strings
When org-use-property-inheritance is a list, then the query (property "FOO" "BAR") would bail out with: org-ql--byte-compile-warning: Invalid Org QL query: "Invalid Org QL query: \"‘\\\"BLAH\\\"’ is a malformed function\", :warning", :error (property "FOO") would still work though. So, if org-use-property-inheritance is a list, cast it to the (default) boolean value for this variable: nil.
This commit is contained in:
parent
1d98c7d07c
commit
45ecf64d55
1 changed files with 3 additions and 3 deletions
|
|
@ -1802,9 +1802,9 @@ interpreted as nil or non-nil)."
|
|||
(when (keywordp property)
|
||||
(setf property (substring (symbol-name property) 1)))
|
||||
(list 'property property value
|
||||
:inherit (if (plist-member plist :inherit)
|
||||
(plist-get plist :inherit)
|
||||
org-use-property-inheritance))))
|
||||
:inherit (cond ((plist-member plist :inherit) (plist-get plist :inherit))
|
||||
((listp org-use-property-inheritance) nil)
|
||||
(t org-use-property-inheritance)))))
|
||||
;; MAYBE: Should case folding be disabled for properties? What about values?
|
||||
;; MAYBE: Support (property) without args.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue