At 03:03 PM 5/28/99 +0000, Jim Piersol wrote:
>
> Thanks for the tip. Works Great, but .... Is there a way to force JDE to
> always
I think you would have to modify jde-run.el to do this. The modification would
be pretty straightforward.
- Paul
>
> use the same Run Buffer ? Alot of my classes in the same package have main
> methods for simple testing purposes, I would like the Run output to always be
> in the same buffer, not a different one per class.
>
> Thanks a ton.
>>
>> Sears, William D wrote in message
>>
>> <<mailto:[EMAIL PROTECTED]
>> om>[EMAIL PROTECTED]>...
>>
>> I use:
>> (setq special-display-regexps '("\\*COM\\.[a-z0-9A-Z.]+\*"))
>>
>> This puts any buffer which has a name of *COM.text*
>> in it's own window. (Where 'text' is any string of letters, numbers,
>> or periods.) i.e. *COM.Navistar.app* (the buffer for running
>> the class COM.Navistar.app) gets its own window.
>> Since I do all of my work under COM this works for me.
>> The variable special-display-regexps can hold a list, so you could
>> include other regexps for whatever your top level packages are
>> in place of COM. (You do use packages, don't you? ;-)
>>
>> Example:
>> (setq special-display-regexps '("\\*COM\\.[a-z0-9A-Z.]+\*"
>> "\\*george\\.[a-z0-9A-Z.]+\*"))
>>
>> Which should work for all classes under the "COM" and "george" packages.
>> (Note, this is case sensitive, but so is Java.)
>>
>> William Sears
>>
>> -----Original Message-----
>> From: Paul Kinnucan
[<mailto:[EMAIL PROTECTED]>mailto:[EMAIL PROTECTED]]
>> Sent: Friday, May 28, 1999 8:41 AM
>> To: Alex Cachia; Adam Ambrose; Jim Piersol
>> Cc: [EMAIL PROTECTED]
>> Subject: Re: screen buffer resizing
>>
>> At 06:30 AM 5/28/99 -0700, Alex Cachia wrote:
>> >
>> >
>> >--- Adam Ambrose <[EMAIL PROTECTED]> wrote:
>> >> Jim Piersol wrote:
>> >> >
>> >> > Great, is there a similiar command to control sizing on the JDE->Run
>> App
>> >> > buffer ?
>> >> >
>> >> > Kenneth J. Hughes wrote in message
>> >> > <[EMAIL PROTECTED]>...
>> >> > >At 07:54 PM 5/27/99 GMT, Jim Piersol wrote:
>> >> > >>When you do a compile, a second buffer appears on the bottom half of
>> the
>> >> > >>emacs screen. While you can resize this buffer, if you chose to do
>> >> > another
>> >> > >>operation, i.e. run app., the buffer is reset to take up half the
>> screen
>> >> > >>again. Is there any way to control this resizing ? I would like to
>> make
>> >> > >>the buffer only take uip about 20 - 25 % of the main screen.
>> >> > >
>> >> > >I use (setq compilation-window-height 17).
>> >> > >
>> >> > >Kenneth J. Hughes
>> >> > >
>> >>
>> >>
>> >> This is not exactly the answer you were looking for, but is kinda neat,
>> >> anyway. If you're running emacs in a windowing system, one thing I like
>> >> to do is have a new frame pop up with the run output. Since the buffer
>> >> is called "*Main*" by default, I use the following:
>> >>
>> >> (setq special-display-buffer-names
>> >> '("*Main*"))
>> >>
>> >> Adam Ambrose
>> >>
>> >
>> >I've been trying to get this to work. I have the compilation window poping
>> up
>> >but have been unable to get the run window to pop up. I believe it has
>> >something to do with the name '*Main*'. My run buffers are all named
>> >differently. Any way to to use regular expressions in a lisp statement
>> like
>> >that or change the name of my run buffers to the same name?
>> >
>>
>> You could try inserting
>>
>> (setq special-display-buffer-names
>> '("*MYMAINCLASS*"))
>>
>> in the prj.el file for your project where MYMAINCLASS is the name of your
>> project's main class. (The JDE sets the name of the run buffer to the name
>> of the class being run.)
>>
>> - Paul
>