From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Opening speedbar in the same frame Date: Fri, 9 Sep 2005 22:41:37 -0700 Message-ID: References: <20050910021103.GH1803@johnsons-web.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1126332530 2160 80.91.229.2 (10 Sep 2005 06:08:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 10 Sep 2005 06:08:50 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 10 08:08:48 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EDyXO-0001q9-71 for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Sep 2005 08:08:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EDyXN-0007VK-3E for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Sep 2005 02:08:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EDyUz-0007V8-Rx for help-gnu-emacs@gnu.org; Sat, 10 Sep 2005 02:06:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EDySc-0007Gr-Bu for help-gnu-emacs@gnu.org; Sat, 10 Sep 2005 02:03:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EDySR-0006o2-DS for help-gnu-emacs@gnu.org; Sat, 10 Sep 2005 02:03:23 -0400 Original-Received: from [141.146.126.230] (helo=agminet03.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EDy7d-0003yV-R4 for help-gnu-emacs@gnu.org; Sat, 10 Sep 2005 01:41:54 -0400 Original-Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by agminet03.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j8A5fjwn009404; Sat, 10 Sep 2005 00:41:45 -0500 Original-Received: from rgmsgw300.us.oracle.com (localhost [127.0.0.1]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j8A5fijC024813; Fri, 9 Sep 2005 23:41:44 -0600 Original-Received: from dradamslap (dhcp-amer-whq-csvpn-gw3-141-144-80-166.vpn.oracle.com [141.144.80.166]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id j8A5fh2c024806 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Fri, 9 Sep 2005 23:41:43 -0600 Original-To: , "Tim Johnson" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 In-Reply-To: <20050910021103.GH1803@johnsons-web.com> X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE 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:29368 Archived-At: 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