At 07:42 PM 6/28/2001 +0530, Vishwanathan SVN wrote: >whenever I do the following sequence of operations XEmacs simply hangs :-( > >Open a Java source file. >Compile it (This is optional if the file is already compiled) >Run it using C-C-C-V-C-R >and again run it using C-C-C-V-C-R > >I figured out that it is hanging in the function. I have indicated the exact >statement at which it hangs/goes into an infinite loop. > >(defun jde-run-parse-args (s) > "Converts a string of command-line arguments to a list of arguments. >Any substring that is enclosed in single or double quotes or does not >include >whitespace is considered a parameter." > (let ((n (string-match "[^\" ][^ ]*\\|\"[^\"]*\"\\|'[^']*'" s)) > (i 0) > (tokens '())) > (while n > (setq tokens (append tokens (list (match-string 0 s)))) > (setq n (match-end 0)) > (setq n (string-match "[^\" ][^ ]*\\|\"[^\"]*\"\\|'[^']*'" s n))) >=> tokens)) > >what is strange is that it happens only the second time around when it >enters the function. I am not a lisp Pro :-) so I could not figure out why >it is happening. My problem report is attached below. Can someone shed >light on what could possibly be happening? I tried running jde-run-parse-args on the command line argument strings that you specified for jde-run-option-vm-args. It worked perfectly in both cases. No infinite loop. - Paul
