eschulte/org-ehtml

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.

  1. Configure org-ehtml in init.el
  2. Start emacs without opening any files
  3. Visit org-ehtml in web browser and observe that it can load a file
  4. Start another emacs session and edit that file
  5. Reload the page in the web browser and observe that it fails
  6. Check your emacs from 2 and see the 'Reread from disk' message