ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk>
Subject: Re: HZ and DVI
Date: Sat, 13 Jan 2007 15:29:39 +0000	[thread overview]
Message-ID: <E1H5kp9-00058Y-00@skye.ra.phy.cam.ac.uk> (raw)
In-Reply-To: Your message of "Sat, 13 Jan 2007 15:29:22 +0100." <Pine.LNX.4.58.0701131524190.11478@gaston.pm>

> 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)

  reply	other threads:[~2007-01-13 15:29 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-08 17:05 Peter Münster
2007-01-08 18:41 ` Hans Hagen
2007-01-09 19:30   ` Peter Münster
2007-01-09 21:27     ` Hans Hagen
2007-01-09 23:25       ` Martin Schröder
2007-01-09 23:36         ` Arthur Reutenauer
2007-01-11 20:56           ` Henning Hraban Ramm
2007-03-29  7:56           ` Patrick Gundlach
2007-03-29  8:09             ` Steffen Wolfrum
2007-01-10  1:39     ` Sanjoy Mahajan
2007-01-10  4:39       ` Aditya Mahajan
2007-01-10  8:22       ` Hans Hagen
2007-01-10 18:57         ` Peter Münster
2007-01-13  2:33           ` Sanjoy Mahajan
2007-01-13 13:23             ` Martin Schröder
2007-01-13 20:37               ` Sanjoy Mahajan
2007-01-13 14:29             ` Peter Münster
2007-01-13 15:29               ` Sanjoy Mahajan [this message]
2007-01-16  0:04                 ` Jano Kula
2007-01-16  2:51                   ` Sanjoy Mahajan
2007-01-13 17:47               ` Mojca Miklavec

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=E1H5kp9-00058Y-00@skye.ra.phy.cam.ac.uk \
    --to=sanjoy@mrao.cam.ac.uk \
    --cc=ntg-context@ntg.nl \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).