emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DocView: desktop starts PDF/PS conversion process


From: Juri Linkov
Subject: Re: DocView: desktop starts PDF/PS conversion process
Date: Fri, 04 Jan 2008 11:57:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

>> When a PDF/PS file gets saved in the desktop file, then after starting
>> Emacs and reading this PDF/PS file, DocView starts a PDF/PS conversion
>> process.  This is annoying behavior, because for an unknown reason
>> the CPU goes high and you need investigating what really happens.
>
> I don't use desktop, so could you give me a recipe?

Just enable the desktop mode, visit a PDF file and reopen emacs.

>> What would be a good solution?  Maybe to add `doc-view-mode' to
>> `desktop-modes-not-to-save'?
>
> No, that shouldn't be needed.  AFAIK desktop saves the files you were
> looking at when closing emacs, and on startup it reopens them, right?
> So when reopening a pdf that was already converted before, it should use
> the cached files.  Is it possible that you accidentially deleted them?

Of course, a cache is not something permanent, e.g. on many systems rebooting
deletes all files in the /tmp directory where the doc-view cache is saved.

> Basically there should be no difference in `C-x C-f foo.pdf' and desktop
> opening it.  Does a conversion start when you open a pdf with find-file
> for the second time?

As I mentioned above, using a cache is not a solution for this problem.
What do you think about saving in the desktop file not the major mode
doc-view-mode, but its minor mode that instead of displaying the rendered
image displays the source text?  In this case, restoring the desktop
doesn't start the conversion process, and when the user wants to view
the rendered document in the restored buffer (and start the conversion process),
this is easy to do by typing `C-c C-c'.

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]