Re[3]: jde and emacs memory usage

2004-11-19 Thread Troy Daniels
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


How to set auto-fill-mode in java

2004-11-19 Thread Karr, David
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.


What is proper way to set frame parameters for speedbar?

2004-11-19 Thread Karr, David
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: Problem with JDEE 2.3.4

2004-11-19 Thread Jason Baker
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
simple-name:qualifier 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, tab, the first letter of p4, tab, return, 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


Re[4]: jde and emacs memory usage

2004-11-19 Thread Eric M. Ludlam
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


How to use Semantic Class Browser conflict with Source Files browser

2004-11-19 Thread 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

2004-11-19 Thread Karr, David
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.