- Subject: Re: Re: A small and a large window on startup
- From: Guenter Milde <milde@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 30 Jan 2003 11:19:47 +0100 (CET)
On Wed, 29 Jan 2003 18:58:18 +0100 wrote Martin Klaiber <martinkl@xxxxxxxxxxxxxxxxxx>:
> >> This is: a small window at the top and a large for the rest.
>
> > PS: What is this used for?
>
> For programming. In the small window on top runs the output from the
> compiler, in the large window at the bottom is the source. What I want
> is something like starting jed as 'jed -2 file' but the windows shall
> not be split equally.
>
> > If it is already filled with some content,
>
> Normally: yes.
>
> > you could use the fit_window([max_lines]) function from the bufutils.sl
> > mode on JMR.
Even better (IMHO) suggestion: using the
popup_buffer(buf, max_rows = Max_Popup_Size)
function from bufutils.sl to open up the compiler output will give you the
opportunity to
* set the maximal number of rows
* close buffer and window at once with close_buffer
(see e.g. the gnuplot.sl mode for an example of how it is done)
Caveat: the standard compiler support uses pop2buf -- if you use these, it
might be easier to have a wrapper with fit_window(max_rows) than to change
the sources.
> I've downloaded it and put it in my local jed-directory, where the
> other additional sl-files are too. But I can't load fit_window(), I
> get the error-message: No match!
Is this when trying with M-x (emacs_escape_x)?
emacs_escape_x only knows functions that are declared to it via the
add_completion() function. Also, emacs_escape_x does not provide a means to
give arguments to a function.
> Do you know, how to solve that?
Use M-Shift-X (evaluate_cmd) and insert valid slang code at the minibuffer
prompt. (Get and install Klaus Schmidts sltabc.sl to have TAB-completion
here too.)
> In .jedrc I have 'set_jed_library_path' pointing to this directory.
Test, whether Help>Describe_Function says: Undefined or just Undocumented.
Hope this helps
Günter
--
Milde at ife.et.tu-dresden.de
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2003 date index]
[2003 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]