0

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?

0

This seems to be the variable org-tags-history, so the following works:

 (add-to-history 'org-tags-history query-string)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.