Emacs prompts to reload file
Closed this issue · 3 comments
I am trying to run org-ehtml as a service so that multiple people can edit a single set of org files via the web. Eventually I plan to start a dedicated emacs instance for this via launchd, but for now I am just testing with emacs running in a GNU screen session.
Initially, the pages display fine. However, if a user edits one of the org files via an emacs session on the machine, org-ehtml stops working. When I log in and reattach to my gnu screen session running emacs, I see tthe prompt.
File master.org changed on disk. Reread from disk? (yes or no)
What causes this prompt, and how can I either disable it or automatically answer yes?
Setting global-auto-revert-mode may have fixed this.
I'm having problems reproducing this problem locally. I get user changes immediately reflected in the Emacs buffer visiting the file. Could you provide more precise step-by-step reproduction information?
Thanks,
Sorry I wasn't clear before. Here is what I thought I was doing before that caused the error. However, I can no longer reproduce it.
- Configure org-ehtml in init.el
- Start emacs without opening any files
- Visit org-ehtml in web browser and observe that it can load a file
- Start another emacs session and edit that file
- Reload the page in the web browser and observe that it fails
- Check your emacs from 2 and see the 'Reread from disk' message