Fix: (org-ql--peg-parse-string) Unused lexical variable warning

peg.el doesn't use lexical binding, and org-ql.el does, so this caused
a byte-compile warning.  It doesn't seem to change the behavior of the
expanded code, so it should be a safe change...
This commit is contained in:
Adam Porter 2020-11-05 11:28:22 -06:00
parent 94be07244c
commit 5e61d1b326

View file

@ -1682,7 +1682,7 @@ resp. succeded instead of signaling an error."
,(if noerror
(let ((entry (make-symbol "entry"))
(start (caar rules)))
`(peg-parse (entry (or (and ,start `(-- t)) ""))
`(peg-parse (,entry (or (and ,start `(-- t)) ""))
. ,rules))
`(peg-parse . ,rules))))