Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test-ob-hy.el changes the global value of org-id-locations-file #6

Open
TinaRussell opened this issue Dec 11, 2018 · 0 comments
Open
Labels

Comments

@TinaRussell
Copy link

In test-ob-hy.el:

(defconst org-id-locations-file
  (expand-file-name ".test-org-id-locations" ob-hy-test-dir))

It may be there for testing purposes, but it seems to be persistent—I have (use-package ob-hy) in my init file (and I have the package installed via MELPA), and Customize reports that org-id-locations-file has changed outside Customize to ~/.emacs.d/elpa/ob-hy-1.0.1/.test-org-id-locations (the original value was ~/.emacs.d/.org-id-locations). This must throw a monkey wrench into org-id tracking!

My best guess as to how to fix this: instead of the defconst, ensure that every time a function being called needs the test value of org-id-locations-file, it’s wrapped in a let-block:

(let ((org-id-locations-file (expand-file-name ".test-org-id-locations" ob-hy-test-dir)))
  …(STUFF-GOES-HERE)…)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants