Re: server-goto-file-row goes to line 1

2009-07-16 Thread Sam Liddicott
* rgheck wrote, On 15/07/09 17:28: > Here's what the docs say: > > LFUN_SERVER_GOTO_FILE_ROW > > * Action Sets the cursor position based on the row number of generated > TeX file. > > * Notion This can be useful for DVI inverse-search or detection of the > problematic line from LaTeX compilatio

Re: server-goto-file-row goes to line 1

2009-07-16 Thread rgheck
On 07/16/2009 09:16 AM, Sam Liddicott wrote: * rgheck wrote, On 16/07/09 13:51: On 07/16/2009 06:23 AM, Pavel Sanda wrote: Richard Heck wrote: So are you doing this from outside LyX with calls to the lyxserver? If so, then use a for loop or something and call LFUN_DOWN repea

Re: server-goto-file-row goes to line 1

2009-07-16 Thread Sam Liddicott
* rgheck wrote, On 16/07/09 13:51: > On 07/16/2009 06:23 AM, Pavel Sanda wrote: >> Richard Heck wrote: >> >>> So are you doing this from outside LyX with calls to the lyxserver? If >>> so, then use a for loop or something and call LFUN_DOWN repeatedly. Slow >>> and stupid, but it'll work. >>>

Re: server-goto-file-row goes to line 1

2009-07-16 Thread rgheck
On 07/16/2009 06:23 AM, Pavel Sanda wrote: Richard Heck wrote: So are you doing this from outside LyX with calls to the lyxserver? If so, then use a for loop or something and call LFUN_DOWN repeatedly. Slow and stupid, but it'll work. ouch, this will be dependent on the window resolu

Re: server-goto-file-row goes to line 1

2009-07-16 Thread Pavel Sanda
Richard Heck wrote: > So are you doing this from outside LyX with calls to the lyxserver? If > so, then use a for loop or something and call LFUN_DOWN repeatedly. Slow > and stupid, but it'll work. ouch, this will be dependent on the window resolution. navigate in .lyx file is a bad idea anyway.

Re: server-goto-file-row goes to line 1

2009-07-16 Thread Sam Liddicott
* rgheck wrote, On 15/07/09 21:46: > On 07/15/2009 03:42 PM, Sam Liddicott wrote: >> My C sources aren't generated via the tex files (partly because it's >> not simple to get Lyx to export a tex file from a noweb document >> without running noweb). >> >> I really need to be able to navigate to a li

Re: server-goto-file-row goes to line 1

2009-07-15 Thread rgheck
On 07/15/2009 03:42 PM, Sam Liddicott wrote: My C sources aren't generated via the tex files (partly because it's not simple to get Lyx to export a tex file from a noweb document without running noweb). I really need to be able to navigate to a line (and column even) in the Lyx file. So are

Re: server-goto-file-row goes to line 1

2009-07-15 Thread Sam Liddicott
rgheck wrote: On 07/15/2009 10:25 AM, Sam Liddicott wrote: If I type: server-goto-file-row THISFILENAME.lyx 20 into the Lyx command buffer, it always goes to the top of the document. (I'm using Lyx 1.6.2). Am I using the command wrongly...? Probably. I suspect you haven't run LaTeX on th

Re: server-goto-file-row goes to line 1

2009-07-15 Thread rgheck
On 07/15/2009 10:25 AM, Sam Liddicott wrote: If I type: server-goto-file-row THISFILENAME.lyx 20 into the Lyx command buffer, it always goes to the top of the document. (I'm using Lyx 1.6.2). Am I using the command wrongly...? Probably. I suspect you haven't run LaTeX on the file yet. He

server-goto-file-row goes to line 1

2009-07-15 Thread Sam Liddicott
If I type: server-goto-file-row THISFILENAME.lyx 20 into the Lyx command buffer, it always goes to the top of the document. (I'm using Lyx 1.6.2). Am I using the command wrongly or are there other known problems that someone can comment on? Thanks Sam