comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » IDLWAVE Screen Split
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
IDLWAVE Screen Split [message #54700] Tue, 10 July 2007 09:26 Go to next message
mankoff is currently offline  mankoff
Messages: 131
Registered: March 2004
Senior Member
Hi JD,

I'd like to have the IDLWAVE shell (Ctrl+C,S) not spit the screen in
half, but perhaps in a 2:1 ratio or so. I've scanned the documentation
but couldn't find the command to do this. I'm guessing it is either
"idlwave-shell-frame-parameters" or "idlwave-shell-mode-hook" but
don't know what to do beyond that.

Thanks,

-k.
Re: IDLWAVE Screen Split [message #54790 is a reply to message #54700] Fri, 13 July 2007 20:23 Go to previous message
mankoff is currently offline  mankoff
Messages: 131
Registered: March 2004
Senior Member
On Jul 13, 1:17 pm, JD Smith <jdsm...@as.arizona.edu> wrote:
> On Wed, 11 Jul 2007 17:35:58 +0000, mankoff wrote:
>> On Jul 10, 12:26 pm, mankoff <mank...@gmail.com> wrote:
>>> Hi JD,
>
>>> I'd like to have the IDLWAVE shell (Ctrl+C,S) not spit the screen in
>>> half, but perhaps in a 2:1 ratio or so. I've scanned the documentation
>>> but couldn't find the command to do this. I'm guessing it is either
>>> "idlwave-shell-frame-parameters" or "idlwave-shell-mode-hook" but don't
>>> know what to do beyond that.
>
>>> Thanks,
>
>>> -k.
>
>> So, I realized this is not an IDLWAVE thing but an emacs thing in general,
>> and therefore a bit offtopic. I figured out a solution and will post here
>> just in case anyone cares...
>
>> I've created a custom screen split function that gives me an 8 line lower
>> buffer rather than a 50/50 split.
>
>> (defun mysplit
>> ()
>
>> (interactive)
>> (setq split-
>> window
>> (split-window nil (- (window-height)
>> 8))
>> )
>> )
>
> That might work, but it might screw up other windows which need to be a
> certain size. There is no pre-set IDLWAVE variable for this, but you can
> easily "advise" the appropriate function to do what you want:
>
> (defadvice idlwave-display-buffer (after shrink-idl-window activate)
> "Keep the IDL window height to 1/3 the frame height."
> (if (equal buf (idlwave-shell-buffer))
> (set-window-text-height (get-buffer-window buf) (/ (frame-height) 3))))
>
> I simply use a dedicated frame for *idl* (see
> idlwave-shell-used-dedicated-frame).
>
> JD

That works like a charm. Thank you! In searching this out I had a
hunch that the advice function would be useful in the solution but
hadn't yet figured out what to advise.

-k.
Re: IDLWAVE Screen Split [message #54798 is a reply to message #54700] Fri, 13 July 2007 10:17 Go to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Wed, 11 Jul 2007 17:35:58 +0000, mankoff wrote:

> On Jul 10, 12:26 pm, mankoff <mank...@gmail.com> wrote:
>> Hi JD,
>>
>> I'd like to have the IDLWAVE shell (Ctrl+C,S) not spit the screen in
>> half, but perhaps in a 2:1 ratio or so. I've scanned the documentation
>> but couldn't find the command to do this. I'm guessing it is either
>> "idlwave-shell-frame-parameters" or "idlwave-shell-mode-hook" but don't
>> know what to do beyond that.
>>
>> Thanks,
>>
>> -k.
>
> So, I realized this is not an IDLWAVE thing but an emacs thing in general,
> and therefore a bit offtopic. I figured out a solution and will post here
> just in case anyone cares...
>
> I've created a custom screen split function that gives me an 8 line lower
> buffer rather than a 50/50 split.
>
> (defun mysplit
> ()
>
> (interactive)
> (setq split-
> window
> (split-window nil (- (window-height)
> 8))
> )
> )

That might work, but it might screw up other windows which need to be a
certain size. There is no pre-set IDLWAVE variable for this, but you can
easily "advise" the appropriate function to do what you want:

(defadvice idlwave-display-buffer (after shrink-idl-window activate)
"Keep the IDL window height to 1/3 the frame height."
(if (equal buf (idlwave-shell-buffer))
(set-window-text-height (get-buffer-window buf) (/ (frame-height) 3))))

I simply use a dedicated frame for *idl* (see
idlwave-shell-used-dedicated-frame).

JD
Re: IDLWAVE Screen Split [message #54821 is a reply to message #54700] Wed, 11 July 2007 10:35 Go to previous message
mankoff is currently offline  mankoff
Messages: 131
Registered: March 2004
Senior Member
On Jul 10, 12:26 pm, mankoff <mank...@gmail.com> wrote:
> Hi JD,
>
> I'd like to have the IDLWAVE shell (Ctrl+C,S) not spit the screen in
> half, but perhaps in a 2:1 ratio or so. I've scanned the documentation
> but couldn't find the command to do this. I'm guessing it is either
> "idlwave-shell-frame-parameters" or "idlwave-shell-mode-hook" but
> don't know what to do beyond that.
>
> Thanks,
>
> -k.

So, I realized this is not an IDLWAVE thing but an emacs thing in
general, and therefore a bit offtopic. I figured out a solution and
will post here just in case anyone cares...

I've created a custom screen split function that gives me an 8 line
lower buffer rather than a 50/50 split.

(defun mysplit
()

(interactive)
(setq split-
window
(split-window nil (- (window-height)
8))
)
)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: MOD43B3 Col.4 Processing. unexpected error message. why?
Next Topic: Extrude keyword

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:07:58 PDT 2025

Total time taken to generate the page: 0.00622 seconds