On Tuesday, January 14th, 2025 at 11:04, stardiviner <numbch...@gmail.com> wrote:
> Finally found the real reason: package `project-rootfile` -> (add-to-list > 'project-find-functions #'project-rootfile-try-detect t) > I don't know why project-rootfile involved in the Org mode Babel source block > execution path. > I checked out the source code of `project-rootfile`. Have not found any clue. > Anyone have thoughts on this weird problem? I think you've identified the same kind of problem I have. I have some Org files with R code that I run in a session, and I want the working directory to be the directory the files are in (.) but it is one up (..). I couldn't figure out why it happened, because it wasn't happening with "make repro" tests. But now that I look at it, this happens in files that are in projects or Git repositories. I don't use the package you do, though, just built-in projects.el. Still, maybe it's the same thing? Bill -- William Denton https://www.miskatonic.org/ Librarian, artist and licensed private investigator. Toronto, Canada