[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#139028: xdvi does not respond to the USR1 signal.



Package: tetex-bin
Version: 1.0.7+20011202-5

Hello, ...

I am the maintainer of the whizzytex package :

Description: a WYSIWIG environment for LaTeX
 WhizzyTeX is an emacs minor mode for incrementally
 (TeXing and) previewing a LaTeX file that you are editing.
 .
 It works with ghostview-based and xdvi-based previewers,
 but best visual effect and more options will be available
 if you use the advi previewer.

It uses the USR1 signal to tell xdvi to redraw the page after a change was
done.

But then, since /usr/bin/xdvi is a script which in turn calls
/usr/bin/xdvi.bin, this signal is lost, resulting in the imposibility to use
xdvi with whizzytex.

It was suggested that a solution to this would be to call, not the xdvi.bin
binary directly, as it is done, but to use exec instead, something akin to :

-------------cut here---------------
--- /usr/bin/xdvi.orig  Tue Mar 19 10:34:32 2002
+++ /usr/bin/xdvi       Tue Mar 19 10:34:50 2002
@@ -71,5 +71,5 @@
     filename=$tempfile
 fi
 
-xdvi.bin $NAMEOPT $args $filename || exit 1
+exec xdvi.bin $NAMEOPT $args $filename || exit 1
 exit 0
-------------cut here---------------

But then, maybe the exit stuff is not needed anymore in this case, i don't
know, i am not shell expert.

Friendly,

Sven Luther




Reply to: