|
From: Slava P. <sl...@je...> - 2003-07-02 19:00:18
|
Hi, All I can think of is that the text area only scrolls if it has focus, so somehow the focus flag is getting busted? On Fri, Jun 27, 2003 at 05:03:31AM -0400, Hemphill, Barry wrote: > Hi all, > > I've written a macro (pretty badly I'm sure - I'm not an experienced Java > coder) which basically does the following: > > 1) Finds the "chartStyle" value for the current line (chartStyle is a tag in > language called RDL) > 2) Parses the includes section to find included files > 3) Opens each of those files (if necessary) and searches each for the > chartStyle definition > 4) Switches the edit pane to that buffer > > It more or less works - there are a few problems where it will fail if the > files are not already open (maybe having to do with the asynch IO?) - but > just yesterday I discovered a much nastier problem. If I use this macro, it > seems to break scrolling, in that if you use the cursor keys to move the > cursor off of the visible buffer area, the edit pane does not scroll to > follow the cursor. It seems that I'm doing something which makes the change > persist until I exit/restart jEdit as well. > > I've done some testing to confirm that before I run the macro, scrolling > (with arrow keys, pgup/pgdn) works normally, and then as soon as I run it, > it stops working. I can use View->Scrolling->Scroll to current line, and it > still works, but that's pretty inconvenient. > > I'm attaching the macro (it's pretty small) so maybe someone can either a) > confirm what I'm seeing or b) point out the mistake I made in it, although I > guess to confirm it you'd need RDL files, and they're pretty big so I don't > want to attach them to the list. Ah well, maybe something obvious will jump > out in the macro. BTW, I'm using jEdit 4.1 final, Win2K - haven't had a > chance to test this on Solaris and Linux yet (I'm on the road in Switzerland > - yay!). > > Thanks in advance, > > Barry > > > ---- > Barry Hemphill Senior Educational Specialist > Tel: (508) 486-4011 Educational Services > Fax: (508) 486-4004 Concord Communications, Inc. > bhe...@co... 600 Nickerson Road > http://www.concord.com Marlboro, MA 01752 > > "I don't want to achieve immortality through my work...I want to achieve it > through not dying." > --- Woody Allen > > > > > > ********************************************************************** > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the system manager. > This footnote also confirms that this email message has been swept by > the latest virus scan software available for the presence of computer > viruses. > ********************************************************************** > -- Slava Pestov |