all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: emacs-devel@gnu.org
Subject: Re: DocView: desktop starts PDF/PS conversion process
Date: Fri, 04 Jan 2008 11:57:45 +0200	[thread overview]
Message-ID: <87ejcxopn2.fsf@jurta.org> (raw)
In-Reply-To: <87prwiasv9.fsf@member.fsf.org> (Tassilo Horn's message of "Fri,  04 Jan 2008 09:37:46 +0100")

>> 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	other threads:[~2008-01-04  9:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-03 23:18 DocView: desktop starts PDF/PS conversion process Juri Linkov
2008-01-04  8:37 ` Tassilo Horn
2008-01-04  9:57   ` Juri Linkov [this message]
2008-01-04 13:49     ` Tassilo Horn

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ejcxopn2.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.