Avoid compiler warnings when defining predicate without body
This commit is contained in:
parent
3e6818d819
commit
dc6f2d2501
1 changed files with 1 additions and 1 deletions
|
|
@ -1117,7 +1117,7 @@ It would be expanded to:
|
||||||
(preambles (cl-sublis (list (cons 'predicate-names (cons 'or (--map (list 'quote it) predicate-names))))
|
(preambles (cl-sublis (list (cons 'predicate-names (cons 'or (--map (list 'quote it) predicate-names))))
|
||||||
preambles)))
|
preambles)))
|
||||||
`(progn
|
`(progn
|
||||||
(cl-defun ,fn-name ,args ,docstring ,body)
|
(cl-defun ,fn-name ,(if body args '(&rest _)) ,docstring ,body)
|
||||||
;; SOMEDAY: Use `map-elt' here, after map 2.1 can be automatically installed in CI sandbox...
|
;; SOMEDAY: Use `map-elt' here, after map 2.1 can be automatically installed in CI sandbox...
|
||||||
(setf (alist-get ',predicate-name org-ql-predicates)
|
(setf (alist-get ',predicate-name org-ql-predicates)
|
||||||
`(:name ,',name :aliases ,',aliases :fn ,',fn-name :docstring ,(\, docstring) :args ,',args
|
`(:name ,',name :aliases ,',aliases :fn ,',fn-name :docstring ,(\, docstring) :args ,',args
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue