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 
Return to the default flat view Create a new topic Submit Reply
Re: IDLWAVE Screen Split [message #54790 is a reply to message #54700] Fri, 13 July 2007 20:23 Go to previous messageGo 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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
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: Tue Dec 02 17:46:37 PST 2025

Total time taken to generate the page: 1.28114 seconds