Re: Problems debugging files with more than 1000 lines.

2004-11-23 Thread Morten / Datagruppen MultiMED
Hi

I had my first attempt at writing emacs LISP yesterday, so please bear
with me, if the patch isn't complete.  I haven't tested this patch
extensively, but I tried the code after the change, and it seemed
to work for me.

As Javier noted, maybe the code should examine the locale, and then only
match the char that the local uses, but I have no idea how to write such
code.

Anyway .. here is a cvs diff from lisp-directory of the latest cvs 
version of jde:

 Index: jde-jdb.el
===
RCS file: /pack/anoncvs/jde/lisp/jde-jdb.el,v
retrieving revision 1.45
diff -r1.45 jde-jdb.el
356c356
\\] .*(\\([^\$\n]*\\).*:\\([0-9]*,?[0-9]+\\)))
---
\\]
.*(\\([^\$\n]*\\).*:\\([0-9]*[^[:digit:]]?[0-9]+\\)))
676c676
^.*: thread=.*, \\(\\(.*[.]\\)*\\)\\([^\$]*\\)\\(\$.*\\)*[.].+(),
line=\\([0-9,]*\\),)
---
^.*: thread=.*, \\(\\(.*[.]\\)*\\)\\([^\$]*\\)\\(\$.*\\)*[.].+(),
line=\\([0-9,.]*\\),)
1192c1192
^.*: \thread=.*\,
\\(\\(.*[.]\\)*\\)\\([^$]*\\)\\($.*\\)*[.].+(), line=\\([0-9,]*\\)))
---
^.*: \thread=.*\,
\\(\\(.*[.]\\)*\\)\\([^$]*\\)\\($.*\\)*[.].+(), line=\\([0-9,.]*\\)))
1873c1873
   (if (string-match , number)
---
   (if (string-match [^[:digit:]] number)

Please tell me if you want me to supply this in a different format, and 
how I do that, if so.

Kind regards, and thanks for a great java mode for Emacs,
Morten B. Isaksen .




Re: Problems debugging files with more than 1000 lines.

2004-11-22 Thread Morten / Datagruppen MultiMED
man, 2004-11-22 kl. 13:31 skrev Morten:
 man, 2004-11-22 kl. 13:24 skrev Paul Kinnucan:
  It's possible there is a regression. I will take a look
  this evening to see if I can reproduce the problem. 
  
  Just to be sure, which debugger are you using? The JDEE's
  interface to jdb or JDEbug?
CUT
 I'm using the jdb.


I noticed that in the code, it checks for , .. and replaces it with
.

However, in my locale, lines past 999, are /not/ shown as :  1,204 ..
they're show as 1.204 as we use , in fractional numbers.  Eg. in
danish, 1½ is 1,5 not 1.5 .. so 1,204 would be between the first
and the second line.   Now in regex, . matches any char, so I guess
it needs to be escaped with \ or something?  (I am not proficient
with lisp or elisp).

Morten .