From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: doc-view.el --- View PDF/PostScript/DVI files in Emacs Date: Fri, 24 Aug 2007 23:42:17 +0200 Message-ID: <85r6lsfw3q.fsf@lola.goethe.zz> References: <87d4xd19f8.fsf@baldur.tsdh.de> <87ejhtkvc7.fsf@cadilhac.name> <87ir753qgu.fsf@baldur.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1187991758 7157 80.91.229.12 (24 Aug 2007 21:42:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Aug 2007 21:42:38 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 24 23:42:35 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IOgvK-0003HG-J9 for ged-emacs-devel@m.gmane.org; Fri, 24 Aug 2007 23:42:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IOgvK-0000eU-4F for ged-emacs-devel@m.gmane.org; Fri, 24 Aug 2007 17:42:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IOgvF-0000a9-UF for emacs-devel@gnu.org; Fri, 24 Aug 2007 17:42:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IOgvE-0000VQ-5X for emacs-devel@gnu.org; Fri, 24 Aug 2007 17:42:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IOgvE-0000Uy-0W for emacs-devel@gnu.org; Fri, 24 Aug 2007 17:42:28 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IOgv6-00052A-5V; Fri, 24 Aug 2007 17:42:20 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IOgv4-0006gL-5E; Fri, 24 Aug 2007 17:42:18 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 3F1181C36605; Fri, 24 Aug 2007 23:42:17 +0200 (CEST) In-Reply-To: <87ir753qgu.fsf@baldur.tsdh.de> (Tassilo Horn's message of "Fri\, 24 Aug 2007 17\:24\:49 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:77108 Archived-At: Tassilo Horn writes: > michael@cadilhac.name (Micha=EBl Cadilhac) writes: > > Hi Micha=EBl, > >> 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. Have you tried out preview-latex (integrated with AUCTeX since version 11.80)? It displays images in Emacs buffers without blocking Emacs at all, and renders stuff in the background with a focus on material that is on-screen. It works using Ghostscript on either PDF or PostScript files (in the latter case, dvips is used) or dvipng on DVI files. Ghostscript is used as a daemon in order to render the stuff in a useful order, and a single Ghostscript session renders all images. So it would seem like quite a good candidate for borrowing code. In particular since the entirety of preview-latex is already copyright-assigned to the FSF (as opposed to other parts of AUCTeX where this process is still under work). --=20 David Kastrup, Kriemhildstr. 15, 44793 Bochum