On Thu, May 21, 2009 at 11:04:54AM +0200, Kornel Benko wrote: > Hi, > both (branch and trunk) don't react correct on reverse search. > The only thing that happens is that cursor moves to start of buffer. > > The sent string to lyxpipe was: > LYXCMD:revdvi:server-goto-file- > row:/tmp/lyx_tmpdir.T16958/lyx_tmpbuf0/NFSueberblick.tex 148 > > The answer was: > INFO:revdvi:server-goto-file-row: > > Did something change here? According to "Additional features, 4.6 Reverse DVI > search" it should still function.
It works for me on Linux, Solaris, and Cygwin. Please, apply the attached patch and check whether either "abstmp" or "realtmp" are a prefix of "filename". -- Enrico
Index: src/LyXFunc.cpp =================================================================== --- src/LyXFunc.cpp (revision 29747) +++ src/LyXFunc.cpp (working copy) @@ -1152,6 +1152,9 @@ void LyXFunc::dispatch(FuncRequest const bool loaded = false; string const abstmp = package().temp_dir().absFilename(); string const realtmp = package().temp_dir().realPath(); + lyxerr << "filename: '" << file_name << "'" << endl; + lyxerr << "abstmp: '" << abstmp << "'" << endl; + lyxerr << "realtmp: '" << realtmp << "'" << endl; if (prefixIs(file_name, abstmp) || prefixIs(file_name, realtmp)) { // Needed by inverse dvi search. If it is a file // in tmpdir, call the apropriated function.