From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Suggestion / feature request Date: Thu, 19 Apr 2012 16:17:27 +0200 Message-ID: <87sjfzst54.fsf@thinkpad.tsdh.de> References: <4F901313.5040804@unilim.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334845091 19048 80.91.229.3 (19 Apr 2012 14:18:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 Apr 2012 14:18:11 +0000 (UTC) Cc: emacs-devel@gnu.org To: Carlos Aguilar Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 19 16:18:07 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SKsBC-0008H2-7b for ged-emacs-devel@m.gmane.org; Thu, 19 Apr 2012 16:17:50 +0200 Original-Received: from localhost ([::1]:44378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKsBB-00069P-Hh for ged-emacs-devel@m.gmane.org; Thu, 19 Apr 2012 10:17:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKsB0-00067p-Gw for emacs-devel@gnu.org; Thu, 19 Apr 2012 10:17:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKsAt-0008MB-De for emacs-devel@gnu.org; Thu, 19 Apr 2012 10:17:38 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:52262) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKsAt-0008Lx-7K for emacs-devel@gnu.org; Thu, 19 Apr 2012 10:17:31 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 4E6BED23D7; Thu, 19 Apr 2012 16:17:29 +0200 (CEST) X-Virus-Scanned: amavisd-new at uni-koblenz.de Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hUOnnvPuqo_J; Thu, 19 Apr 2012 16:17:29 +0200 (CEST) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from thinkpad.tsdh.de (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 09287D2382; Thu, 19 Apr 2012 16:17:28 +0200 (CEST) In-Reply-To: <4F901313.5040804@unilim.fr> (Carlos Aguilar's message of "Thu, 19 Apr 2012 15:28:51 +0200") User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 141.26.64.15 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:149817 Archived-At: Carlos Aguilar writes: Hi Carlos, > I often use doc-view mode with medium to large pdf/ps/dvi files, when > writing/modifying latex documents. Yes, frequently changing documents are clearly not the prime use-case for doc-view, exactly because of the reasons you mention. Do you use AUCTeX for writing your documents? If yes, then preview-latex might be exactly what you need. ,----[ (info "(preview-latex)Top") ] | preview-latex is a package embedding preview fragments into Emacs | source buffers under the AUCTeX editing environment for LaTeX. It uses | `preview.sty' for the extraction of certain environments (most notably | displayed formulas). Other applications of this style file are | possible and exist. `---- > I wondered if it would be possible to keep a set of signatures of the > pdf/ps/dvi pages processed so that those that are unchanged are not > reconverted to (already existing) bitmap images. Um, I have no idea how to do that. Doc-view only knows the PNG images generated from the original document, and you can't compare those with pages in the document. Well, it also has the old document's contents in the current buffer and the updated document is on the file system, so in theory it could also compare the documents. But I have no clue how to do that. Googling around, I've found http://www.qtrac.eu/comparepdf.html, but I'm not sure if it does the trick. (Oh, and of course if the comparison of the docs is not significantly cheaper than a reconversion, there's no sense in doing so. ;-)) Bye, Tassilo