emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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/)]
@ 2020-11-12  8:37 Erik Hahn
  2020-11-12 19:02 ` Tim Cross
  0 siblings, 1 reply; 3+ messages in thread
From: Erik Hahn @ 2020-11-12  8:37 UTC (permalink / raw)
  To: emacs-orgmode

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/)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* 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/)]
  2020-11-12  8:37 Erik Hahn
@ 2020-11-12 19:02 ` Tim Cross
  0 siblings, 0 replies; 3+ messages in thread
From: Tim Cross @ 2020-11-12 19:02 UTC (permalink / raw)
  To: emacs-orgmode


Erik Hahn <mail@erikhahn.eu> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* 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/)]
@ 2020-11-16 12:14 Erik Hahn
  0 siblings, 0 replies; 3+ messages in thread
From: Erik Hahn @ 2020-11-16 12:14 UTC (permalink / raw)
  To: theophilusx, emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 307 bytes --]

> 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?

IMO, selecting the "...and open" option implies that you want to (re-)load the PDF.


[-- Attachment #2: Type: text/html, Size: 460 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-11-16 12:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-16 12:14 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/)] Erik Hahn
  -- strict thread matches above, loose matches on Subject: below --
2020-11-12  8:37 Erik Hahn
2020-11-12 19:02 ` Tim Cross

Code repositories for project(s) associated with this public 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).