Re: [PATCH] Inverse DVI search

2003-10-14 Thread Alfredo Braunstein
Joao Luis Meloni Assirati wrote: > I confirm that kdvi does not touch its environment (at least too much). It Well if it would touch a variable called LYXSOCKET, I'd call that unfair practice! > is easy now: > > lyx will set the environment variables: > > EDITOR='lyxclient -g %f %l' > LYXSOCKE

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Joao Luis Meloni Assirati
On Tue, 14 Oct 2003, Joao Luis Meloni Assirati wrote: > Wait... No need to pass the socket name to kdvi. I got it now :). If kdvi > doesn't touch an environment variable named LYXSOCKET, the lyxclient > could read it. Then there is no need to any wrapper. I confirm that kdvi does not touch its

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Alfredo Braunstein
Joao Luis Meloni Assirati wrote: > Wait... No need to pass the socket name to kdvi. I got it now :). If kdvi > doesn't touch an environment variable named LYXSOCKET, the lyxclient > could read it. Then there is no need to any wrapper. > > Is it what you are sugesting? Yes, the wrapping would be

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Joao Luis Meloni Assirati
On Tue, 14 Oct 2003, Alfredo Braunstein wrote: > Joao Luis Meloni Assirati wrote: > > > That is right. Kdvi doesn't set the editor with with the command line nor > > environment variables. There is no way to tell about a dynamic EDITOR > > string to kdvi... That is a pity because kdvi is better

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Angus Leeming
Joao Luis Meloni Assirati wrote: > That is right. Kdvi doesn't set the editor with with the command > line nor environment variables. There is no way to tell about a > dynamic EDITOR string to kdvi... That is a pity because kdvi is > better that xdvi. Do they accept patches? -- Angus

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Alfredo Braunstein
Joao Luis Meloni Assirati wrote: > That is right. Kdvi doesn't set the editor with with the command line nor > environment variables. There is no way to tell about a dynamic EDITOR > string to kdvi... That is a pity because kdvi is better that xdvi. But this can be solved again with a little shel

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Joao Luis Meloni Assirati
On Tue, 14 Oct 2003, Angus Leeming wrote: > Joao Luis Meloni Assirati wrote: > > No, Angus, this is because no one is seting the "variable" $$a. Lyx > > sets it before passing the string 'xdvi -editor lyxclient -a $$a -g > > %f %l' to a shell. > > Hmmm. It would be nice if we could cure this pro

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Alfredo Braunstein
Joao Luis Meloni Assirati wrote: > You cas also set the environment variable > EDITOR='lyxclient -g %f %l' > Of course the option -a cannot be used in this case because there is no > lyx to set $$a, so you must have only one lyx running in order to > lyxclient correctly detect the socket. > > If

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Joao Luis Meloni Assirati
On Tue, 14 Oct 2003, Angus Leeming wrote: > Joao Luis Meloni Assirati wrote: > > If lyx could set environment variables, we still could use -a in > > lyxclient. > > It can: > $ grep putenv lyx/devel/src/support/*.h > lyx/devel/src/support/lyxlib.h:int putenv(char const * str); Oh! Putenv lives

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Angus Leeming
Joao Luis Meloni Assirati wrote: > No, Angus, this is because no one is seting the "variable" $$a. Lyx > sets it before passing the string 'xdvi -editor lyxclient -a $$a -g > %f %l' to a shell. Hmmm. It would be nice if we could cure this properly. Can we not tell kdvi what editor we are going to

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Joao Luis Meloni Assirati
On Tue, 14 Oct 2003, Angus Leeming wrote: > I had to set the editor in kdvi as > $HOME/bin/lyxclient -a /tmp/lyx_tmpdir5520D1o7pn/lyxsocket -g %f %l > > Ie, I had to set the location of the socket explicitly. Setting it as > $HOME/bin/lyxclient -a $$a -g %f %l > did not work. Presumably this is

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Angus Leeming
Joao Luis Meloni Assirati wrote: > If lyx could set environment variables, we still could use -a in > lyxclient. It can: $ grep putenv lyx/devel/src/support/*.h lyx/devel/src/support/lyxlib.h:int putenv(char const * str); -- Angus

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Joao Luis Meloni Assirati
On Tue, 14 Oct 2003, Angus Leeming wrote: > Alfredo Braunstein wrote: > > On rh9's tetex there's a source latex package > > > > $ kpsewhich srcltx.sty > > /usr/share/texmf/tex/latex/srcltx/srcltx.sty > > > > that does the equivalent. Can we use that? > > Sure. Great news. > However, my version

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Angus Leeming
Alfredo Braunstein wrote: > Angus Leeming wrote: > >> Needless to say, debian unstable uses xdvik version 22.40v > > I use kdvi coming with qt 3.1.1 (KViewShell 0.2) that works > beautifully. Holy smoke! It does too! I had to set the editor in kdvi as $HOME/bin/lyxclient -a /tmp/lyx_tmpdir5520

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Andre Poenitz
On Tue, Oct 14, 2003 at 11:33:24AM +, Angus Leeming wrote: > $ latex --version > TeX (Web2C 7.4.5) 3.14159 > kpathsea version 3.4.5 > Copyright (C) 1997-2003 D.E. Knuth. > [snip copyright details...] > > ... and confirm that this version of latex has no problems with the > --src-specials opti

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Andre Poenitz
On Tue, Oct 14, 2003 at 12:23:42PM +0200, Lars Gullik Bjønnes wrote: > What version of latex are requried for this? The one coming with stock SuSE 7.3 seems to be happy with it. Name: tetex Version : beta.20020207 Andre'

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Alfredo Braunstein
Angus Leeming wrote: > Needless to say, debian unstable uses xdvik version 22.40v I use kdvi coming with qt 3.1.1 (KViewShell 0.2) that works beautifully. Regards, Alfredo

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Angus Leeming
Alfredo Braunstein wrote: > Angus Leeming wrote: > >> João, I have compiled your patch without any problems, but cannot >> use it. Apparently the latex that comes with RedHat 8 does not >> recognize the --src-specials option. >> >> $ latex --src-specials myfile >> latex: unrecognized option `--s

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > > | Joao Luis Meloni Assirati wrote: >>> Follows attached an updated patch that uses $$a (stands for >>> address) as a placeholder for the socket. Also I had to declare >>> and create a dummy lyxserver in the qt frontend so

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Alfredo Braunstein
Angus Leeming wrote: > João, I have compiled your patch without any problems, but cannot use > it. Apparently the latex that comes with RedHat 8 does not recognize > the --src-specials option. > > $ latex --src-specials myfile > latex: unrecognized option `--src-specials' > Try `latex --help' for

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Joao Luis Meloni Assirati wrote: >> Follows attached an updated patch that uses $$a (stands for address) >> as a placeholder for the socket. Also I had to declare and create a >> dummy lyxserver in the qt frontend so it can compile. >> >>> I think you c

Re: [PATCH] Inverse DVI search

2003-10-14 Thread Angus Leeming
Joao Luis Meloni Assirati wrote: > Follows attached an updated patch that uses $$a (stands for address) > as a placeholder for the socket. Also I had to declare and create a > dummy lyxserver in the qt frontend so it can compile. > >> I think you can regard these as minor points and that we'll exp

Re: [PATCH] Inverse DVI search

2003-10-13 Thread Joao Luis Meloni Assirati
Hello, On Mon, 13 Oct 2003, Angus Leeming wrote: > Also note that you can't use the placeholder '$$s' as it is already > taken (grep '$$s' src/support/filetools.[Ch]). Follows attached an updated patch that uses $$a (stands for address) as a placeholder for the socket. Also I had to declare and

Re: [PATCH] Inverse DVI search

2003-10-13 Thread Lars Gullik Bjønnes
Joao Luis Meloni Assirati <[EMAIL PROTECTED]> writes: | Hello Angus! > | On Mon, 13 Oct 2003, Angus Leeming wrote: > >> João, I am not going to commit this patch as it stands. >> I think that you should think about Lars' suggestion to place the >> socket files in ~/.lyx/socket.#pid. Doing so would

Re: [PATCH] Inverse DVI search

2003-10-13 Thread Angus Leeming
Joao Luis Meloni Assirati wrote: > So if lyxclient is to be parsing user configuration, the > --with-version-suffix must also modify lyxclient configuration. Not > difficult to do, but we may postpone, don't you think? Sure. -- Angus

Re: [PATCH] Inverse DVI search

2003-10-13 Thread Joao Luis Meloni Assirati
On Mon, 13 Oct 2003, Angus Leeming wrote: > Joao Luis Meloni Assirati wrote: > > > See the last email in the thread on the lyxsocket. I have arguments > > in favour of my choice, but if people thint that it must change, > > I'll do it. > > No, I think your points about afs are enough. I didn't r

Re: [PATCH] Inverse DVI search

2003-10-13 Thread Angus Leeming
Joao Luis Meloni Assirati wrote: > > Hello Angus! > > On Mon, 13 Oct 2003, Angus Leeming wrote: > >> João, I am not going to commit this patch as it stands. >> I think that you should think about Lars' suggestion to place the >> socket files in ~/.lyx/socket.#pid. Doing so would mean you >> cha

Re: [PATCH] Inverse DVI search

2003-10-13 Thread Joao Luis Meloni Assirati
Hello Angus! On Mon, 13 Oct 2003, Angus Leeming wrote: > João, I am not going to commit this patch as it stands. > I think that you should think about Lars' suggestion to place the > socket files in ~/.lyx/socket.#pid. Doing so would mean you changing > getBufferFromTmp to getBufferFromPID or si

Re: [PATCH] Inverse DVI search

2003-10-13 Thread Angus Leeming
Joao Luis Meloni Assirati wrote: > > Hello again, > > This patch implements Inverse DVI search for lyx. It needs my > previous patch for the socket lyxserver. To use it, define > > xdvi -editor 'lyxclient -a $$s -g %f %l' > > as the viewer for the DVI format and > > latex --src-specials >

Re: [PATCH] Inverse DVI search

2003-10-13 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > | I am going to commit this patch as-is unless someone speaks up > | soon. > > Is it tested? It will be by the time I commit it. -- Angus

Re: [PATCH] Inverse DVI search

2003-10-13 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Joao Luis Meloni Assirati wrote: >> Hello again, >> >> This patch implements Inverse DVI search for lyx. It needs my >> previous patch for the socket lyxserver. To use it, define >> >> xdvi -editor 'lyxclient -a $$s -g %f %l' >> >> as the viewer for

Re: [PATCH] Inverse DVI search

2003-10-13 Thread Angus Leeming
Joao Luis Meloni Assirati wrote: > Hello again, > > This patch implements Inverse DVI search for lyx. It needs my > previous patch for the socket lyxserver. To use it, define > > xdvi -editor 'lyxclient -a $$s -g %f %l' > > as the viewer for the DVI format and > > latex --src-specials > >

[PATCH] Inverse DVI search

2003-10-07 Thread Joao Luis Meloni Assirati
Hello again, This patch implements Inverse DVI search for lyx. It needs my previous patch for the socket lyxserver. To use it, define xdvi -editor 'lyxclient -a $$s -g %f %l' as the viewer for the DVI format and latex --src-specials as the latex->DVI converter. As with the previous, I wi