help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Opening speedbar in the same frame


From: Drew Adams
Subject: RE: Opening speedbar in the same frame
Date: Fri, 9 Sep 2005 22:41:37 -0700

    1)Is it possible to open the speedbar in the same frame
      as the request?
    2)If so, why is it the default to open the speedbar in its
      own frame?

I can't answer #1 or #2.

    3)A quick google on this subject did not answer the questions
      above, but I did find some references to Drew Andrews and
      "shrink wrapping" windows in a frame. such effects could be
      very useful in formatting a frame with the speedbar on the
      left or right and horizontally split windows.

My code to shrink-wrap frames resizes a frame to fit the selected window. It
does not resize windows within a frame, so it might not be what you're
looking for.

Generally, it is useful when you use only one Emacs window per frame. To do
that, set variable `pop-up-frames' to `t'. I prefer window-manager windows
(aka Emacs frames) to Emacs windows, but you may not.

The frame is resized to be wide enough that lines don't need to be wrapped,
but no wider than the widest line. Similarly, for height. You can set
maximum and minimum dimensions.

    Pointers/URLs to discussions, documentation etc. on any or all
    of the questions is welcome.

The shrink-wrapping code is in libraries fit-frame.el and autofit-frame.el,
available here:

1. http://www.emacswiki.org/cgi-bin/emacs/fit-frame.el

2. http://www.emacswiki.org/cgi-bin/emacs/autofit-frame.el

The first provides a command that you can use to fit (i.e. shrink-wrap) a
frame. The second makes Emacs automatically fit all one-window frames. The
second requires the first.

An explanation with screenshots is here:
http://www.emacswiki.org/cgi-bin/wiki/Shrink-Wrapping_Frames.

HTH.

 - Drew





reply via email to

[Prev in Thread] Current Thread [Next in Thread]