I'm executing sparse tree queries programmatically, and I'd like to save the search queries in the same history variable that org-mode uses by default. I'm guessing I can/should do this with
add-to-history (described here).
I took a quick look at the code but, being unfamiliar with it, I could not find the right variable.
Does anyone know?