Re: DVI search.

2006-03-24 Thread Lars Gullik Bjønnes
João Luis Meloni Assirati <[EMAIL PROTECTED]> writes: | | Sorry, guys. I hadn't reallized that Lars post was about the .h file. I | understand now, it was a stupid error. Attached is the updated patch. Does this patch need any changes before I commit it? (rediff?) -- Lgb

Re: DVI search.

2006-03-10 Thread Georg Baum
Am Freitag, 10. März 2006 02:39 schrieb João Luis Meloni Assirati: > You are half right. Yes, the converter will runLaTeX(), but the latex > machinery will not run latex because the checksum of the latex file will be > consistent with the .dep file. If I understoo well, this is part of the > co

Re: DVI search.

2006-03-09 Thread João Luis Meloni Assirati
Em Qui 09 Mar 2006 18:33, Georg Baum escreveu: > I guess you meant: > > if output_file != resultfile and resultfile exists, then, before runing > the converter, move resultfile to resultfile.tmp, and after the converter > finishes, move back resultfile.tmp to resultfile. This is a generic > soluti

Re: DVI search.

2006-03-09 Thread João Luis Meloni Assirati
Em Qui 09 Mar 2006 18:30, Georg Baum escreveu: > Am Donnerstag, 9. März 2006 10:06 schrieb João Luis Meloni Assirati: > > If the converter sees a .dvi in the tmpdir (that is, I previously > > exported to > > dvi), then a next .dvix generation (that is, a next preview) will simply > > move > > the e

Re: DVI search.

2006-03-09 Thread Georg Baum
Am Donnerstag, 9. März 2006 10:59 schrieb João Luis Meloni Assirati: > What do you think about the following idea: if output_file != resultfile and > resultfile exists, then, before runung the converter, move outputfile to > outputfile.tmp, and after the converter finishes, move back outputfile

Re: DVI search.

2006-03-09 Thread Georg Baum
Am Donnerstag, 9. März 2006 10:06 schrieb João Luis Meloni Assirati: > Ok, that is useful, a child format inherits its parents viewers. My problem is > another. In your patch, a .dvix (I am not using this anymore, but lets > communicate like this) is made through the chain > > .tex -> .dvi -> .

Re: DVI search.

2006-03-09 Thread João Luis Meloni Assirati
Em Qui 09 Mar 2006 06:06, João Luis Meloni Assirati escreveu: > Em Qui 09 Mar 2006 05:50, Georg Baum escreveu: > In your patch, a .dvix (I am not using this anymore, but lets > communicate like this) is made through the chain > > .tex -> .dvi -> .dvix. > > If the converter sees a .dvi in the tmpdir

Re: DVI search.

2006-03-09 Thread João Luis Meloni Assirati
Em Qui 09 Mar 2006 05:50, Georg Baum escreveu: > João Luis Meloni Assirati wrote: > > What happens when a format is a "child format"? Can you point me to the > > code that handles this? Please help me here. > > Look for isChildFormat() in graph.C and formats.C Thanks, Georg. Ok, that is useful, a

Re: DVI search.

2006-03-09 Thread Georg Baum
João Luis Meloni Assirati wrote: > What happens when a format is a "child format"? Can you point me to the > code that handles this? Please help me here. Look for isChildFormat() in graph.C and formats.C Georg

Re: DVI search.

2006-03-09 Thread João Luis Meloni Assirati
Em Seg 06 Mar 2006 15:12, Georg Baum escreveu: > The format must end with a number so that it is recognized as a "child" > format (I don't like that magic, but it is implemented like that). I don't > see a problem to have "dvi2" also as extension. What happens when a format is a "child format"? Ca

Re: DVI search.

2006-03-07 Thread João Luis Meloni Assirati
Em Ter 07 Mar 2006 10:11, Georg Baum escreveu: > Angus Leeming wrote: > > Having "dvi2 as an extension" might be a problem on Windows because > > Windows uses the extension to determine the file type. Ie, clicking on > > foo.dvi will open up the .dvi file inside of YAP but clicking on foo.dvi2 > >

Re: DVI search.

2006-03-07 Thread Georg Baum
Angus Leeming wrote: > Having "dvi2 as an extension" might be a problem on Windows because > Windows uses the extension to determine the file type. Ie, clicking on > foo.dvi will open up the .dvi file inside of YAP but clicking on foo.dvi2 > wouldn't. There's no such concept as magic numbers in Wi

Re: DVI search.

2006-03-07 Thread Helge Hafting
Angus Leeming wrote: Having "dvi2 as an extension" might be a problem on Windows because Windows uses the extension to determine the file type. Ie, clicking on foo.dvi will open up the .dvi file inside of YAP but clicking on foo.dvi2 wouldn't. There's no such concept as magic numbers in Wind

Re: DVI search.

2006-03-06 Thread Angus Leeming
Georg Baum wrote: The format must end with a number so that it is recognized as a "child" format (I don't like that magic, but it is implemented like that). I don't see a problem to have "dvi2" also as extension. Having "dvi2 as an extension" might be a problem on Windows because Windows uses

Re: DVI search.

2006-03-06 Thread Georg Baum
João Luis Meloni Assirati wrote: > I need to review better your code, but I think this is the way to go. > Forward search is currently not working. I have to admit that I did not test that. I may have deleted too much. >> I created the attached patch, based on your last one (dvi-search-3.diff).

Re: DVI search.

2006-03-06 Thread João Luis Meloni Assirati
Hi Georg, Thank you for the constructive criticism and work on my patch. Em Sáb 04 Mar 2006 15:09, Georg Baum escreveu: > > I think that DVI search is a very useful feature and that it should go in > as soon as possible. It is great that you implemented it, and I am going > to use it in my tree f

Re: DVI search.

2006-03-04 Thread Georg Baum
Am Samstag, 4. März 2006 19:50 schrieb Lars Gullik Bjønnes: > Why not use change the name of the file? Add a prefix or suffix or > something? No playing around with the file extension. A suffix _pre was the solution of João. That lead to the passing around of the for_preview flag that I did not

Re: DVI search.

2006-03-04 Thread Lars Gullik Bjønnes
Georg Baum <[EMAIL PROTECTED]> writes: | I created the attached patch, based on your last one (dvi-search-3.diff). | It works for me (did only test xdvi). | In order to give the DVI file with source specials a different name I | defined the suffix of the new dvi2 format as dvix. This triggered a

Re: DVI search.

2006-03-04 Thread Georg Baum
Am Freitag, 3. März 2006 00:46 schrieb João Luis Meloni Assirati: > Sorry, guys. I hadn't reallized that Lars post was about the .h file. I > understand now, it was a stupid error. Attached is the updated patch. João, I think that DVI search is a very useful feature and that it should go in a

Re: Removing TexRow [was Re: DVI search].

2006-03-04 Thread Lars Gullik Bjønnes
João Luis Meloni Assirati <[EMAIL PROTECTED]> writes: | > We insert the sourcespecials ourselfs, and it is what is set in those | > that latex reports. | | Can you explain it better, please? Latex reports errors as this: | | ! Undefined control sequence. | l.24 asd asd \asd | a

Removing TexRow [was Re: DVI search].

2006-03-03 Thread João Luis Meloni Assirati
Em Sex 03 Mar 2006 05:28, Lars Gullik Bjønnes escreveu: > João Luis Meloni Assirati <[EMAIL PROTECTED]> writes: > | Em Qui 02 Mar 2006 05:22, Lars Gullik Bjønnes escreveu: > | > This 'TexRow::' is actually a syntax error and will give warning/error > | > with gcc 4.1. > | > | I don't get it. What i

Re: DVI search.

2006-03-03 Thread Lars Gullik Bjønnes
João Luis Meloni Assirati <[EMAIL PROTECTED]> writes: | Em Qui 02 Mar 2006 05:22, Lars Gullik Bjønnes escreveu: | > João Luis Meloni Assirati <[EMAIL PROTECTED]> writes: | > | Index: src/texrow.h | > | === | > | --- src/texrow.h (rev

Re: DVI search.

2006-03-02 Thread João Luis Meloni Assirati
Em Qui 02 Mar 2006 18:40, Jose' Matos escreveu: Oi José! > On Thursday 02 March 2006 21:32, João Luis Meloni Assirati wrote: > > Olá João, :-) > (Oi seria melhor ? ;-) Está bem das duas maneiras. Gosto do modo português de falar, também :) (Lars, keep reading, please :) > > > > I don't get it.

Re: DVI search.

2006-03-02 Thread João Luis Meloni Assirati
Em Qui 02 Mar 2006 07:31, Angus Leeming escreveu: > João Luis Meloni Assirati <[EMAIL PROTECTED]> writes: > > > * if LyX were able to talk to xdvi through the lyxclient interface, > > > then we wouldn't have to keep creating a new xdvi process in "client" > > > mode each time I click in the LyX win

Re: DVI search.

2006-03-02 Thread Jose' Matos
On Thursday 02 March 2006 21:32, João Luis Meloni Assirati wrote: Olá João, :-) (Oi seria melhor ? ;-) > > | Index: src/texrow.h > > | === > > | --- src/texrow.h (revision 13280) > > | +++ src/texrow.h (working copy) > > | @@ -46,

Re: DVI search.

2006-03-02 Thread João Luis Meloni Assirati
Em Qui 02 Mar 2006 05:22, Lars Gullik Bjønnes escreveu: > João Luis Meloni Assirati <[EMAIL PROTECTED]> writes: > | Index: src/texrow.h > | === > | --- src/texrow.h(revision 13280) > | +++ src/texrow.h(working copy) > | @@ -46,

Re: DVI search.

2006-03-02 Thread João Luis Meloni Assirati
Em Qui 02 Mar 2006 05:19, Lars Gullik Bjønnes escreveu: > João Luis Meloni Assirati <[EMAIL PROTECTED]> writes: > | Index: src/LaTeX.C > | === > | --- src/LaTeX.C (revision 13280) > | +++ src/LaTeX.C (working copy) > | @@ -383,

Re: DVI search.

2006-03-02 Thread Angus Leeming
João Luis Meloni Assirati <[EMAIL PROTECTED]> writes: > > * if LyX were able to talk to xdvi through the lyxclient interface, then we > > wouldn't have to keep creating a new xdvi process in "client" mode each > > time I click in the LyX window which is what happens now. > > No. We don't create a

Re: DVI search.

2006-03-02 Thread Lars Gullik Bjønnes
João Luis Meloni Assirati <[EMAIL PROTECTED]> writes: | Index: src/texrow.h | === | --- src/texrow.h (revision 13280) | +++ src/texrow.h (working copy) | @@ -46,6 +46,9 @@ |*/ | bool getIdFromRow(int row, int &

Re: DVI search.

2006-03-02 Thread Lars Gullik Bjønnes
João Luis Meloni Assirati <[EMAIL PROTECTED]> writes: | Index: src/LaTeX.C | === | --- src/LaTeX.C (revision 13280) | +++ src/LaTeX.C (working copy) | @@ -383,7 +383,8 @@ | | int LaTeX::startscript() | { | - string

Re: DVI search.

2006-03-01 Thread João Luis Meloni Assirati
Em Qua 01 Mar 2006 12:57, Angus Leeming escreveu: > Some more questions, just to get my head around things: > > * xdvi is able to communicate with LyX through the lyxclient socket > interface, right? But LyX isn't able to talk to xdvi through this interface > yet. Correct? Correct. > > * if LyX w

Re: DVI search.

2006-03-01 Thread Angus Leeming
João Luis Meloni Assirati <[EMAIL PROTECTED]> writes: > > I imagine that the same thing would happen when I clicked in the xdvi > > window, precipitating a change of view in LyX. In either case, if I change > > the width of the LyX window, the LyX view and the .dvi view are no longer > > going to b

Re: DVI search.

2006-03-01 Thread João Luis Meloni Assirati
Em Qua 01 Mar 2006 10:01, Jean-Marc Lasgouttes escreveu: > > "João" == João Luis Meloni Assirati <[EMAIL PROTECTED]> > > writes: > > João> Hello, > > João> Now that lyx is very close to a release, I publish again in this > João> list my dvi search patch. I intend to maintain this patch for

Re: DVI search.

2006-03-01 Thread João Luis Meloni Assirati
Em Qua 01 Mar 2006 11:48, João Luis Meloni Assirati escreveu: > > That said, I can only perform another forward search (after I changed the > lyx view) if I do another view->dvi. Note that with the option > -sourceposition, xdvi will operate in "client mode" and do a new search > without startin

Fwd: Re: DVI search.

2006-03-01 Thread João Luis Meloni Assirati
Sorry, I didn't send the message to the list. João. -- Mensagem reenviada -- Subject: Re: DVI search. Date: Qua 01 Mar 2006 11:20 From: João Luis Meloni Assirati <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Em Qua 01 Mar 2006 10:03, Martin Vermeer escreveu: > On W

Re: DVI search.

2006-03-01 Thread João Luis Meloni Assirati
Em Qua 01 Mar 2006 10:13, Angus Leeming escreveu: > Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > > Angus Leeming <[EMAIL PROTECTED]> writes: > > | João Luis Meloni Assirati ...> writes: > > | > Now that lyx is very close to a release, I publish again in this > > | > list my dvi search patch.

Re: DVI search.

2006-03-01 Thread Angus Leeming
Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > Angus Leeming <[EMAIL PROTECTED]> writes: > > | João Luis Meloni Assirati ...> writes: > | > Now that lyx is very close to a release, I publish again in this > | > list my dvi search patch. I intend to maintain this patch for > | > all releases of

Re: DVI search.

2006-03-01 Thread Martin Vermeer
On Wed, 2006-03-01 at 08:20 -0300, João Luis Meloni Assirati wrote: > Hello, > > Now that lyx is very close to a release, I publish again in this list my dvi > search patch. I intend to maintain this patch for all releases of the 1.4 > series as long as it remain useful to me. I hope that it can

Re: DVI search.

2006-03-01 Thread Jean-Marc Lasgouttes
> "João" == João Luis Meloni Assirati <[EMAIL PROTECTED]> writes: João> Hello, João> Now that lyx is very close to a release, I publish again in this João> list my dvi search patch. I intend to maintain this patch for João> all releases of the 1.4 series as long as it remain useful to João> m

Re: DVI search.

2006-03-01 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | João Luis Meloni Assirati <[EMAIL PROTECTED]> writes: | > Now that lyx is very close to a release, I publish again in this list my dvi | > search patch. I intend to maintain this patch for all releases of the 1.4 | > series as long as it remain usefu

Re: DVI search.

2006-03-01 Thread Angus Leeming
João Luis Meloni Assirati <[EMAIL PROTECTED]> writes: > Now that lyx is very close to a release, I publish again in this list my dvi > search patch. I intend to maintain this patch for all releases of the 1.4 > series as long as it remain useful to me. Can we *please* get this into LyX 1.4.x! Th

Re: dvi search

2003-10-23 Thread Alfredo Braunstein
Andre Poenitz wrote: > On Tue, Oct 21, 2003 at 01:59:03PM -0200, Joao Luis Meloni Assirati wrote: >> On Tue, 21 Oct 2003, Andre Poenitz wrote: >> >> > > Why don't you let xdvi do it's job instead >> > > of trying manually? >> > >> > Because it does not work, i.e. the cursor does not move. No erro

Re: dvi search

2003-10-21 Thread Andre Poenitz
On Tue, Oct 21, 2003 at 01:59:03PM -0200, Joao Luis Meloni Assirati wrote: > On Tue, 21 Oct 2003, Andre Poenitz wrote: > > > > Why don't you let xdvi do it's job instead > > > of trying manually? > > > > Because it does not work, i.e. the cursor does not move. No error > > message whatsoever. As x

Re: dvi search

2003-10-21 Thread Joao Luis Meloni Assirati
On Tue, 21 Oct 2003, Andre Poenitz wrote: > > Why don't you let xdvi do it's job instead > > of trying manually? > > Because it does not work, i.e. the cursor does not move. No error > message whatsoever. As xdvi does work with EDITOR=vi I figured it might > be a problem with teh lyxclient <-> Ly

Re: dvi search

2003-10-21 Thread Andre Poenitz
On Tue, Oct 21, 2003 at 11:49:44AM -0200, Joao Luis Meloni Assirati wrote: > > Hello, > > On Tue, 21 Oct 2003, Andre Poenitz wrote: > > > How do I start lyxclient manually if I want to go to a certain line? > > > > lyxclient -g newfile16.lyx 13 > > > > brings up a 'document is already loaded, w

Re: dvi search

2003-10-21 Thread Joao Luis Meloni Assirati
Hello, On Tue, 21 Oct 2003, Andre Poenitz wrote: > How do I start lyxclient manually if I want to go to a certain line? > > lyxclient -g newfile16.lyx 13 > > brings up a 'document is already loaded, want to switch' dialog. -g is an alias to LFUN_GOTOFILEROW. My inverse search patch just extend

Re: dvi search

2003-10-21 Thread Andre Poenitz
On Tue, Oct 21, 2003 at 11:45:45AM +0100, Angus Leeming wrote: > Andre Poenitz wrote: > > The buttons present me with a choice of immediate crash or full > > freeze. So it "sort of works", but not really automatic, nor > > robust... > > Be fair, André. I did not complain. Andre'

Re: dvi search

2003-10-21 Thread Alfredo Braunstein
Andre Poenitz wrote: > The buttons present me with a choice of immediate crash or full freeze. > So it "sort of works", but not really automatic, nor robust... But there is also a bug in the core it seems... The dialog appears because of a full path/only name problem. It doesn't if the full path

Re: dvi search

2003-10-21 Thread Angus Leeming
Andre Poenitz wrote: > The buttons present me with a choice of immediate crash or full > freeze. So it "sort of works", but not really automatic, nor > robust... Be fair, André. It's new code and I'm sure that its author would welcome prescriptions to make it fail... -- Angus

Re: dvi search

2003-10-21 Thread Andre Poenitz
On Tue, Oct 21, 2003 at 10:11:06AM +, Angus Leeming wrote: > Andre Poenitz wrote: > > > > > I somehow lost track: Is this in? > > Yes. > > > If so, does it work with xdvi 22.40h (Stock SuSE 8.1)? > > If so, how? > > Andre' > > You need two things. > 1. Either a latex compiler that understa

Re: dvi search

2003-10-21 Thread Angus Leeming
Andre Poenitz wrote: > > I somehow lost track: Is this in? Yes. > If so, does it work with xdvi 22.40h (Stock SuSE 8.1)? > If so, how? > Andre' You need two things. 1. Either a latex compiler that understands the --src-specials flag or the srcltx package. Here, my latex does not understand th

Re: dvi search

2003-10-21 Thread Alfredo Braunstein
Andre Poenitz wrote: > I somehow lost track: Is this in? Partially. There's a patch waiting for approval (support for sockets on qt and shell variables fiddling). And you still have to define latex --source-specials as your latex->dvi converter (if supported) or manually \include[active]{srcltx.s