From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/32718 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: HZ and DVI Date: Sat, 13 Jan 2007 15:29:39 +0000 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1168702199 10907 80.91.229.12 (13 Jan 2007 15:29:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Jan 2007 15:29:59 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 13 16:29:57 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1H5kpO-00052i-2g for gctc-ntg-context-518@m.gmane.org; Sat, 13 Jan 2007 16:29:54 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BC4A82014E; Sat, 13 Jan 2007 16:26:01 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16439-01-6; Sat, 13 Jan 2007 16:25:54 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 70288200B7; Sat, 13 Jan 2007 16:25:54 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CBC59200D3 for ; Sat, 13 Jan 2007 16:25:52 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16439-01-5 for ; Sat, 13 Jan 2007 16:25:48 +0100 (CET) Original-Received: from mraos.ra.phy.cam.ac.uk (mraos.ra.phy.cam.ac.uk [131.111.48.8]) by ronja.ntg.nl (Postfix) with ESMTP id 2A99F20052 for ; Sat, 13 Jan 2007 16:25:48 +0100 (CET) Original-Received: from skye.ra.phy.cam.ac.uk ([131.111.48.158] ident=mail) by mraos.ra.phy.cam.ac.uk with esmtp (Exim 4.43) id 1H5kp9-0002uB-2Z; Sat, 13 Jan 2007 15:29:39 +0000 Original-Received: from sanjoy by skye.ra.phy.cam.ac.uk with local (Exim 3.36 #1) id 1H5kp9-00058Y-00; Sat, 13 Jan 2007 15:29:39 +0000 Original-To: ntg-context@ntg.nl In-Reply-To: Your message of "Sat, 13 Jan 2007 15:29:22 +0100." X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:32718 Archived-At: > on my system, when watching the file, gv issues very often some > errors after modification of the pdf-file and that's annoying. Peter, You're right. I guessed it might be reading a half-rewritten PDF file before the new xref table is written (at the end of the file) and getting confused. Alas, more systematic tests of this hypothesis refuted it. I changed the watch interval to 10 seconds (default is 1 second), to reduce the odds that the PDF file was being rewritten while gv was reloading it. Even that change didn't help. gv still produced tons of interpreter errors. I guess it doesn't reread the xref table properly, or something like that. Whatever the cause, it's a pain. xpdf has a -remote option, so a Makefile rule could make the pdf and then tell xpdf to reload it, via the command line. But I've never managed to get -remote to work with xpdf. So I'm back to the original plan of hacking xpdf to use inotify via the inotify_init(2) and inotify_add_watch(2) syscalls (dnotify looks like a pain to use). My inotify 'hello world' programs aren't yet working so I have a ways to go. -Sanjoy `Not all those who wander are lost.' (J.R.R. Tolkien)