From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: AucTeX and doc-view-mode Date: Tue, 16 Sep 2008 11:53:47 +0200 Message-ID: <87tzcg1kno.fsf@thinkpad.tsdh.de> References: <87od2tw9f1.fsf@localhorst.mine.nu> <87ljxwfpzx.fsf@thinkpad.tsdh.de> <87ej3ow6p9.fsf@localhorst.mine.nu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1221559017 31468 80.91.229.12 (16 Sep 2008 09:56:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2008 09:56:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 16 11:57:50 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KfXJX-0006Rf-Oo for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2008 11:57:44 +0200 Original-Received: from localhost ([127.0.0.1]:45551 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfXIW-0004NX-PQ for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2008 05:56:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KfXI1-0004MM-QH for help-gnu-emacs@gnu.org; Tue, 16 Sep 2008 05:56:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KfXI0-0004LV-Rj for help-gnu-emacs@gnu.org; Tue, 16 Sep 2008 05:56:09 -0400 Original-Received: from [199.232.76.173] (port=34665 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfXI0-0004LI-HO for help-gnu-emacs@gnu.org; Tue, 16 Sep 2008 05:56:08 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:43587 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KfXHz-0001dW-UO for help-gnu-emacs@gnu.org; Tue, 16 Sep 2008 05:56:08 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KfXHv-0008IF-S0 for help-gnu-emacs@gnu.org; Tue, 16 Sep 2008 09:56:03 +0000 Original-Received: from dhcp48.uni-koblenz.de ([141.26.71.48]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Sep 2008 09:56:03 +0000 Original-Received: from tassilo by dhcp48.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Sep 2008 09:56:03 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 45 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dhcp48.uni-koblenz.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:U+vKq/k8LRiD1iLgiEHCdE0llgo= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57689 Archived-At: David Hansen writes: Hi David, >> I don't think that you really want to do that. Doc-view recompiles >> the whole document after it has changed. And since its MD5 changed, >> too, you'll get an additional cache folder in /tmp/doc-view/ for >> any latex run. > > That's a doc-view deficiency, it could a dir named !path!to!file or > similar. Worth a bug report? But how would doc-view know if the document has to be converted anew? We could use such a dirname you suggested and add the md5 sum in a file. The current implementation has the benefit that there will be no new conversion if you have the document multiple times (or moved it to a new location). So both variants have benefits and drawbacks... > I just noted that ~/tmp/doc-view/ is 500M. Some access statistic that > can be used to rm the long time not used directories would be nice > too. Yes, that could be nice. But to get that right one would need access timestamps. AFAIK most users turn them off for their filesystem and I don't know how portable this is anyway. But a timestamp file could be added in the cache dir. Do you have write access to the emacs CVS tree? If yes it would be great if you added an item about that to etc/TODO. >> I think it's much better to use preview-latex in that case. > > It's not the same as seeing the document as it would come out of the > printer. Just think about pictures or the poor syllabication of LaTeX > in non English languages. Then I'd open the document and hit `r' (or `g') after each latex run. I guess you can automate that somehow. Bye, Tassilo