unofficial mirror of emacs-orgmode@gnu.org
 help / color / mirror / Atom feed
* 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

* 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

* 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

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

unofficial mirror of emacs-orgmode@gnu.org

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/orgmode/0 orgmode/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 orgmode orgmode/ https://yhetil.org/orgmode \
		emacs-orgmode@gnu.org
	public-inbox-index orgmode

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.orgmode
	nntp://news.gmane.io/gmane.emacs.orgmode


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git