emacs-devel
[Top][All Lists]
Advanced

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

Re: doc-view.el --- View PDF/PostScript/DVI files in Emacs


From: Tassilo Horn
Subject: Re: doc-view.el --- View PDF/PostScript/DVI files in Emacs
Date: Fri, 24 Aug 2007 17:24:49 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

address@hidden (Michaël Cadilhac) writes:

Hi Michaël,

> This a good feature, but when I tried it on a 60-page document, my
> processor load quickly reached 10 and I was completely stuck. C-g did
> nothing, my firefox was killed, and one of the light bulb of my room
> exploded (there may be no connection for the last one, I'm just not
> sure).

Yes, that's normal.  Be happy that it caches the page files so that it
will open immediately when you want to view this document again.

You can limit the resources convert uses with some environment variables
or it's -limit option.  See the WARNING in the commentary.  And now it
displays a message while it's converting, too.

> It may be a good thing that every 10 seconds, Emacs says « The DocView
> conversion is still running after %d seconds, cancel? », and while the
> question is asked, it (signal-process) to SIGSTOP before and then
> SIGCONT after if the answer is yes.

Hm, I don't think asking questions is a good thing.  I limit convert's
resources and when I open a doc I hadn't opened before, then I know that
it may take some minutes with large files and continue my work until the
*DocView* buffer eventually pops up.

Granted, doc-view isn't too good for large docs that aren't cached.  I
added a function to cancel the conversion.

> Oh, and you wrote `dac-view-' in the :prefix of the doc-view group.
> Typo?

Oh, yes.  And there was an obsolete variable mentioned in the docs.

And I changed the caching strategy a bit.  Instead of using a md5 sum of
the files path I use a md5 sum of its contents, so viewing 2 identical
files in different filesystem locations or moving of files don't need a
new conversion.

I think now it's much better now.

Attachment: doc-view.el
Description: Second version of doc-view.el

Bye,
Tassilo

reply via email to

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