File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -1166,19 +1166,22 @@ More optimal definition would be:
1166
1166
NAME may be a symbol or a list of symbols: if a list, the first
1167
1167
is used as NAME and the rest are aliases.
1168
1168
1169
- ARGS is a `cl-defun' -style argument list. DOCSTRING is the
1170
- function's docstring.
1169
+ ARGS is an argument list. DOCSTRING is the function's docstring.
1171
1170
1172
1171
QUERY is a valid `org-ql' query."
1173
1172
(declare (debug ([&or symbolp listp] listp stringp
1174
1173
&rest (sexp query)))
1175
1174
(indent defun ))
1176
1175
`(org-ql-defpred , name , args
1177
1176
, docstring
1178
- :normalizers ((`(, predicate-names )
1179
- `, query ))
1180
- :body
1181
- , query ))
1177
+ :normalizers ((`(, predicate-names . , arg-values )
1178
+ (cl-progv ', args arg-values
1179
+ (-tree-map
1180
+ (lambda (el )
1181
+ (if (cl-member el ', args )
1182
+ (symbol-value el)
1183
+ el))
1184
+ ', query ))))))
1182
1185
1183
1186
(defmacro org-ql--normalize-from-to-on (&rest body )
1184
1187
" For internal use.
You can’t perform that action at this time.
0 commit comments