From: Tim Cross <firstname.lastname@example.org> To: email@example.com Subject: Re: Bug: Exporting "as PDF file and open" causes unnecessary revert prompt if PDF was already open [9.4 (release_9.4-103-gf0b8de @ /home/erik/.emacs.d/straight/build/org/)] Date: Fri, 13 Nov 2020 06:02:56 +1100 [thread overview] Message-ID: <firstname.lastname@example.org> (raw) In-Reply-To: <email@example.com> Erik Hahn <firstname.lastname@example.org> writes: > In a graphical emacs -Q instance, open any Org file. Export it as PDF and open > (C-e l o). Then do the same again. Emacs prompts "File foo.pdf changed > on disk. Reread from disk (yes or no)" although no external program (not > counting latex as external here as it was started by Emacs) actually > changed the file. > > Emacs : GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14) > of 2020-03-26, modified by Debian > Package: Org mode version 9.4 (release_9.4-103-gf0b8de @ /home/erik/.emacs.d/straight/build/org/) Hmm. Not sure if this is strictly speaking a bug. Latex is an external program and the process does replace the file on disk, so it has changed compared to the buffer. So at that level, the revert seems normal. However, Emacs knows this process has occurred and knows it should re-read from disk as a new PDF has just been created, so perhaps it should just do the revert without asking? This may have consequences for users who are working with large PDF documents and high DPI settings who may not want to re-generate the PDF every time, so it may be necessary to make the auto reloading an option? -- Tim Cross
next prev parent reply other threads:[~2020-11-12 19:03 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-11-12 8:37 Erik Hahn 2020-11-12 19:02 ` Tim Cross [this message] 2020-11-16 12:14 Erik Hahn
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style List information: https://www.orgmode.org/ * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --subject='Re: Bug: Exporting "as PDF file and open" causes unnecessary revert prompt if PDF was already open [9.4 (release_9.4-103-gf0b8de @ /home/erik/.emacs.d/straight/build/org/)]' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Code repositories for project(s) associated with this inbox: https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).