Synchronization issues in JDEbug
Hi Troy, Thanks for pointing out these problems. I will try to fix them ASAP. Paul Troy Daniels writes: > Hello, > > It looks like JDEbug needs to have some methods synchronized. I tried > setting a breakpoint while the process was running, and got the following > in the Message window: > > >Setting breakpoint at line 85 in > >d:/jaguar_te1.2/KBR_ISD_VOB/Jaguar_Plan_Generator_Component/source/PhysicalNetworkBuilder/com/alphatech/kbr/jaguar/networkbuilder/SpatialSpec.java. > >Error: evaluating debugger output caused a Lisp error. > > See *messages* buffer for details. > >Error: evaluating output from the debugger caused a Lisp error. > >Debugger output: it.framework.TestSuite" "TestSuite.java" 208 "runTest") > >(list 25 "junit.framework.TestSuite" "TestSuite.java" 203 "run"). > >Lisp error: (void-variable it.framework.TestSuite) > >Breakpoint set at line 85 in class > >d:/jaguar_te1.2/KBR_ISD_VOB/Jaguar_Plan_Generator_Component/source/PhysicalNetworkBuilder/com/alphatech/kbr/jaguar/networkbuilder/SpatialSpec.java. > > It also appears that, at least with JDK 1.4.2, there is a lot of useless > traffic going from Java to emacs. My *JDEBug* buffer is full of output > that looks like > > >(jde-dbo-event-set 1 "none" > > (list "Thread" 1 "main" "runnable" "suspended by debugger" > >(list > >))) > > Since jde-dbo-event-set is a no-op if the optional fourth arg is omitted, > this slows down the debugger considerably. If the java side checked for > the fourth argument, is could avoid a lot of toString calls, bandwidth to > Emacs and parsing of the string by Emacs. > > Troy > > > > Troy Daniels > [EMAIL PROTECTED] > 781-273-3388 x218 >
Re: Problem with JDEE 2.3.4
Jason Baker writes: > I have an idea for speeding up jde-open-source and > jde-find-and-import. I'd like to see them read classes of the form > : from the minibuffer with standard emacs > completion. > > Suppose you are trying to import the name C where p1.p2.p3.C and > p1.p4.p5.C are defined. jde-find-and-import should prompt with. > `Choose a class to import: C:' From there, one can type the first > letter of p1, , the first letter of p4, , , and get > an import of p1.p4.p5.C. This is a lot faster than reaching for a > mouse, or any other option jde currently provides. What happens if p2 and p4 begin with the same letter? In any event, I'd be happy to see tab completion when a user has to choose among qualified class names. I've a lot of other things I'd rather do at the moment, however, so it won't happen soon unless someelse contributes the necessary Lisp. Paul
RE: How to use Semantic Class Browser & conflict with "Source Files" browser
Karr, David writes: > Related to this, I noticed that the JDEE documentation on the web site > refers to a "Speedbar" menu item in the "JDE" menu. I don't see that. > Is the documentation out of date wrt this version, or is there still > something wrong with my configuration? The doc is out of date. JDE->Browse->Source Files opens the speedbar. Paul > > > -Original Message- > > From: Karr, David > > > > I may be gettng into areas that are better asked on a list > > specific to "semantic", but I'll start this here. > > > > I've been using the "Source Files" mode of Speedbar, which > > works pretty well. I then tried selecting the "Speedbar > > Class Browser" item under "Senator"->"Analyze" (or > > right-clicking on the speedbar and selecting that display). > > When I do this, the speedbar frame displays "Empty display" > > (while I'm viewing a Java source file). I'm not sure what > > this feature is supposed to do. I tried perusing the > > Semantic documentation on the web site, but it doesn't really > > say (afaict) what this is supposed to do.
RE: How to use Semantic Class Browser & conflict with "Source Files" browser
Related to this, I noticed that the JDEE documentation on the web site refers to a "Speedbar" menu item in the "JDE" menu. I don't see that. Is the documentation out of date wrt this version, or is there still something wrong with my configuration? > -Original Message- > From: Karr, David > > I may be gettng into areas that are better asked on a list > specific to "semantic", but I'll start this here. > > I've been using the "Source Files" mode of Speedbar, which > works pretty well. I then tried selecting the "Speedbar > Class Browser" item under "Senator"->"Analyze" (or > right-clicking on the speedbar and selecting that display). > When I do this, the speedbar frame displays "Empty display" > (while I'm viewing a Java source file). I'm not sure what > this feature is supposed to do. I tried perusing the > Semantic documentation on the web site, but it doesn't really > say (afaict) what this is supposed to do.
How to use Semantic Class Browser & conflict with "Source Files" browser
I may be gettng into areas that are better asked on a list specific to "semantic", but I'll start this here. I've been using the "Source Files" mode of Speedbar, which works pretty well. I then tried selecting the "Speedbar Class Browser" item under "Senator"->"Analyze" (or right-clicking on the speedbar and selecting that display). When I do this, the speedbar frame displays "Empty display" (while I'm viewing a Java source file). I'm not sure what this feature is supposed to do. I tried perusing the Semantic documentation on the web site, but it doesn't really say (afaict) what this is supposed to do.
Re[1]: What is proper way to set frame parameters for speedbar?
>>> "Karr, David" <[EMAIL PROTECTED]> seems to think that: >I noticed that there appear to be two different customization variables >that purport to control the configuration of the speedbar frame. >There's the "obvious" one labeled "Frame Parameters" from the >"Customize" option on the right-click menu in the speedbar. There's >also one that I've used before, named "speedbar-frame-plist". It >appears that changes I make to the obvious one are ignored, but changes >to "speedbar-frame-plist" are respected (at least "left", which is the >one I'm trying to set). > >I'm aware of the fact that these two variables are structured >differently (the obvious one uses the "(key . value)" syntax, and the >other separates the key and value in the customize UI. I added "(left . >682)" to the obvious one, and it had no effect, whereas adding a >Property and Value of "left" and "682" to the other one changed the >speedbar frame location. > >Is this perhaps happening because "speedbar-frame-plist" overrides the >value of the other variable? > Emacs and XEmacs treat their frame parameters differently. The "parameters" variable is Emacs only, and the "plist" variable is XEmacs only. If you read the doc for the two variables, you will see the telltale absence, or presence of the "X". Eric -- Eric Ludlam: [EMAIL PROTECTED], [EMAIL PROTECTED] Home: http://www.ludlam.netSiege: www.siege-engine.com Emacs: http://cedet.sourceforge.net GNU: www.gnu.org
Re[4]: jde and emacs memory usage
Sounds like a good idea to me. I'll fix it. Eric >>> Troy Daniels <[EMAIL PROTECTED]> seems to think that: >At 11:02 PM 11/18/2004 -0500, Eric M. Ludlam wrote: > >> >>> Raul Acevedo <[EMAIL PROTECTED]> seems to think that: >> >Wow, that chart thing is pretty cool. :) >> >>There are several random chart functions, plus a "chart" menu item >>in the Senator menu. > >Is there a reason chart-space-usage explicitly calls csh with >call-process-region? My cygwin installation doesn't have csh, only bash >and sh. At the very least, you should use shell-file-name. > >Troy > > >Troy Daniels >[EMAIL PROTECTED] >781-273-3388 x218 > -- Eric Ludlam: [EMAIL PROTECTED], [EMAIL PROTECTED] Home: http://www.ludlam.netSiege: www.siege-engine.com Emacs: http://cedet.sourceforge.net GNU: www.gnu.org
Re: Problem with JDEE 2.3.4
Paul Kinnucan <[EMAIL PROTECTED]> writes: > Jon Schewe writes: > > Can you please not override efc-query-options-function with a function > > that creates a dialog box even if the user has asked XEmacs not to > > display them under any circumstances? Please rewrite this to pay > > attention to the use-dialog-box variable. > > > > `use-dialog-box' is a variable declared in Lisp. > > -- loaded from "/usr/share/xemacs/21.4.15/lisp/minibuf.elc" > > > > Value: nil > > > > Documentation: > > *Variable controlling usage of the dialog box. > > If nil, the dialog box will never be used, even in response to mouse > > events. I've been using the following. Index: efc.el === RCS file: /p/sss/cvs/jde/lisp/efc.el,v retrieving revision 1.1.1.1 diff -c -c -r1.1.1.1 efc.el *** efc.el 31 Oct 2004 23:58:41 - 1.1.1.1 --- efc.el 4 Nov 2004 20:14:14 - *** *** 40,45 --- 40,64 "If non-nil the function to use for interactively querying options. If nil then the default efc custom-based dialogs will be used.") + ;;; Minibuffer interface + (defvar efc-query-options-history nil + "History of efc option values selected through the minibuffer") + + (defun efc-query-options-with-minibuffer (&optional disable) + "Choose whether to enter efc options through a dialog box or the minibuffer. + By default this function sets `efc-query-options-function' to use read + input from the minibuffer. With a prefix argument, this function clears + `efc-query-option-function' to re-enable dialog boxes." + (interactive "P") + (setq efc-query-options-function + (if disable + nil + (lambda (options prompt title) + (completing-read prompt +(mapcar (lambda (x) (cons x t)) options) +nil t nil +'efc-query-options-history) + ;; ;; ;; Dialog Class ;; and calling efc-query-options-with-minibuffer from .xemacs/init.el. I did not submit this to the patches list because I don't think it is the best solution for many efc-query-options clients. I have an idea for speeding up jde-open-source and jde-find-and-import. I'd like to see them read classes of the form : from the minibuffer with standard emacs completion. Suppose you are trying to import the name C where p1.p2.p3.C and p1.p4.p5.C are defined. jde-find-and-import should prompt with. `Choose a class to import: C:' From there, one can type the first letter of p1, , the first letter of p4, , , and get an import of p1.p4.p5.C. This is a lot faster than reaching for a mouse, or any other option jde currently provides. Jason
What is proper way to set frame parameters for speedbar?
I noticed that there appear to be two different customization variables that purport to control the configuration of the speedbar frame. There's the "obvious" one labeled "Frame Parameters" from the "Customize" option on the right-click menu in the speedbar. There's also one that I've used before, named "speedbar-frame-plist". It appears that changes I make to the obvious one are ignored, but changes to "speedbar-frame-plist" are respected (at least "left", which is the one I'm trying to set). I'm aware of the fact that these two variables are structured differently (the obvious one uses the "(key . value)" syntax, and the other separates the key and value in the customize UI. I added "(left . 682)" to the obvious one, and it had no effect, whereas adding a Property and Value of "left" and "682" to the other one changed the speedbar frame location. Is this perhaps happening because "speedbar-frame-plist" overrides the value of the other variable?
RE: How to set auto-fill-mode in java
That worked, thanks. I guess using the java-mode-hook is still ok, perhaps some of my earlier problems were due to my binding to it incorrectly (setqing "java-mode-hook" instead of using "add-hook"). > -Original Message- > From: Michael Schupp [mailto:[EMAIL PROTECTED] > > David once wrote: > > > > The part I can't figure out is how to set "auto-fill-mode". > I'd like > > the ability to auto-fill when I'm writing comments, which this > > provides. I didn't see any obvious information in the user > guide that > > talks about this. > > > i think you might want something like this: > > (add-hook 'java-mode-hook > '(lambda () > (auto-fill-mode 1)))
How to set auto-fill-mode in java
Before I used JDE (or used it semi-correctly), I was using cc-mode, and setting a java-mode-hook to change customization variables (some "c-" settings). I've now stopped manually loading cc-mode (which fixes some problems in the JDE), and I'm trying to set the associated mode variables the proper way, through the customization interface. I was able to get all but one of the items set this way. The part I can't figure out is how to set "auto-fill-mode". I'd like the ability to auto-fill when I'm writing comments, which this provides. I didn't see any obvious information in the user guide that talks about this.
Re[3]: jde and emacs memory usage
At 11:02 PM 11/18/2004 -0500, Eric M. Ludlam wrote: >>> Raul Acevedo <[EMAIL PROTECTED]> seems to think that: >Wow, that chart thing is pretty cool. :) There are several random chart functions, plus a "chart" menu item in the Senator menu. Is there a reason chart-space-usage explicitly calls csh with call-process-region? My cygwin installation doesn't have csh, only bash and sh. At the very least, you should use shell-file-name. Troy Troy Daniels [EMAIL PROTECTED] 781-273-3388 x218