I am trying to code an
rx-to-string form that contains an intermediate regexp.
This code works in Lisp Interaction Mode:
(let* ((a-plus '(one-or-more "a"))) (rx-to-string '(sequence (eval a-plus))))
but fails in Emacs Lisp Mode with a
(void-variable a-plus) error. Why? How do I fix that?
EDIT: I have found the cause: the
lexical-binding: t directive in the Emacs Lisp buffer.