From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: Re: Opening speedbar in the same frame Date: Sat, 10 Sep 2005 19:05:39 -0800 Message-ID: <20050911030539.GA11672@johnsons-web.com> References: <20050910021103.GH1803@johnsons-web.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1126408006 29581 80.91.229.2 (11 Sep 2005 03:06:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 11 Sep 2005 03:06:46 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 11 05:06:40 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EEIAP-0003hZ-IO for geh-help-gnu-emacs@m.gmane.org; Sun, 11 Sep 2005 05:06:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EEIAO-0005ch-Uk for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Sep 2005 23:06:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EEIA2-0005aL-Dd for help-gnu-emacs@gnu.org; Sat, 10 Sep 2005 23:05:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EEI9x-0005Wl-1e for help-gnu-emacs@gnu.org; Sat, 10 Sep 2005 23:05:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EEI9w-0005Vd-PA for help-gnu-emacs@gnu.org; Sat, 10 Sep 2005 23:05:36 -0400 Original-Received: from [208.218.214.44] (helo=ns3.cniweb.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EEI94-0003j0-Ug for help-gnu-emacs@gnu.org; Sat, 10 Sep 2005 23:04:44 -0400 Original-Received: from linus.johnson.com (rdbck-static-445.palmer.mtaonline.net [64.4.232.191]) by ns3.cniweb.net (8.13.3/8.13.3) with ESMTP id j8B2oVqt010060 for ; Sat, 10 Sep 2005 22:50:37 -0400 (EDT) Original-Received: from linus.johnson.com (localhost.johnson.com [127.0.0.1]) by linus.johnson.com (8.12.8/8.12.8) with ESMTP id j8B35dSb012263 for ; Sat, 10 Sep 2005 19:05:39 -0800 Original-Received: (from tim@localhost) by linus.johnson.com (8.12.8/8.12.8/Submit) id j8B35dJU012261 for help-gnu-emacs@gnu.org; Sat, 10 Sep 2005 19:05:39 -0800 Original-To: help-gnu-emacs@gnu.org Mail-Followup-To: Tim Johnson , help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:29376 Archived-At: * Drew Adams [050909 21:45]: Hi Drew: > 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. :-) Must be a reason. Maybe even a good one. The tip in speedbar.el was to map a keystroke to 'speedbar-get-focus. Doing so, is a great help. <...> > 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. Well, shrink wrapping *is not* what I was looking for, but it *will* prove to be very useful. (serendipity!) Thanks for pointing me that way. Cheers tim -- Tim Johnson http://www.alaska-internet-solutions.com