From: Tassilo Horn <tassilo@member.fsf.org>
To: emacs-devel@gnu.org
Subject: Re: doc-view.el --- View PDF/PostScript/DVI files in Emacs
Date: Fri, 24 Aug 2007 17:24:49 +0200 [thread overview]
Message-ID: <87ir753qgu.fsf@baldur.tsdh.de> (raw)
In-Reply-To: 87ejhtkvc7.fsf@cadilhac.name
[-- Attachment #1: Type: text/plain, Size: 1723 bytes --]
michael@cadilhac.name (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 #2: Second version of doc-view.el --]
[-- Type: application/emacs-lisp, Size: 12419 bytes --]
[-- Attachment #3: Type: text/plain, Size: 14 bytes --]
Bye,
Tassilo
[-- Attachment #4: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next prev parent reply other threads:[~2007-08-24 15:24 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-24 11:03 doc-view.el --- View PDF/PostScript/DVI files in Emacs Tassilo Horn
2007-08-24 11:47 ` Michaël Cadilhac
2007-08-24 15:24 ` Tassilo Horn [this message]
2007-08-24 21:42 ` David Kastrup
2007-08-25 17:26 ` Tassilo Horn
2007-08-25 18:34 ` David Kastrup
2007-08-26 10:20 ` Tassilo Horn
2007-08-26 20:38 ` David Kastrup
2007-08-27 8:52 ` Tassilo Horn
2007-08-27 10:23 ` David Kastrup
2007-08-27 14:37 ` Tassilo Horn
2007-08-27 15:16 ` David Kastrup
2007-08-27 20:14 ` Tassilo Horn
2007-08-27 20:31 ` David Kastrup
2007-08-27 20:17 ` Stefan Monnier
2007-08-27 20:30 ` David Kastrup
2007-08-25 20:52 ` Richard Stallman
2007-08-26 10:11 ` Tassilo Horn
2007-08-26 22:46 ` Richard Stallman
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=87ir753qgu.fsf@baldur.tsdh.de \
--to=tassilo@member.fsf.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.