From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Klaus Berndl Newsgroups: gmane.emacs.help Subject: Re: using speedbar in a new buffer... Date: 04 Jul 2004 11:17:17 +0200 Organization: "sd&m AG, Muenchen, Germany" Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <20040703163822.1645b838@ikarus> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1088933626 10893 80.91.224.253 (4 Jul 2004 09:33:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 4 Jul 2004 09:33:46 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 04 11:33:37 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bh3NQ-0003iB-00 for ; Sun, 04 Jul 2004 11:33:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bh3PL-0008B6-7w for geh-help-gnu-emacs@m.gmane.org; Sun, 04 Jul 2004 05:35:35 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!feed.news.tiscali.de!newsfeed01.sul.t-online.de!t-online.de!uucp.muenster.de!dnewsfeed00.dtm.ops.eu.uu.net!bnewsinpeer00.bru.ops.eu.uu.net!emea.uu.net!news.sdm.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 111 Original-NNTP-Posting-Host: callin35.muc.sdm.de Original-X-Trace: news.sdm.de 1088932637 15679 195.125.139.35 (4 Jul 2004 09:17:17 GMT) Original-X-Complaints-To: usenet@news.sdm.de Original-NNTP-Posting-Date: Sun, 4 Jul 2004 09:17:17 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Xref: shelby.stanford.edu gnu.emacs.help:124115 Original-To: help-gnu-emacs@gnu.org 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19446 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19446 On Sat, 03 Jul 2004, Kai Grossjohann wrote: > Thomas Piekarski writes: > > > By default the speedbar is displayed in an externel window under X. > > Is it possible to display the speedbar in a new buffer, this buffer > > should be verticaly splited on the left side of the current buffer? > > This is one of about 100 things that ECB can do. Maybe you will like > it. Maybe you will like it so much, that you never want to use speedbar but instead "native" ECB-windows ;-) OK, because in the last weeks your question has been posted from other people too i will post here the cookbook to reach your goal: 1. Download and install ECB from http://ecb.sf.net 2. Read the following excerpt of the ECB-manual: --- From the ECB-manual --- Integrating speedbar in the ECB-frame ===================================== It is very easy to integrate speedbar into ECB. There are two different ways to do this: 1. You can either use speedbar in the directories-, sources- or methods-window of ECB instead of the built-in directory-, sources- or methods-browser of ECB. This can be done via the option `ecb-use-speedbar-instead-native-tree-buffer'. 2. Or you can integrate an extra speedbar-window into a layout independent of the existence of a directory-, sources- or methods-window. For this you can either use the built-in layout "left-dir-plus-speedbar" or you have to create your own layout interactively with the command `ecb-create-new-layout'. This way is not described in more details because there is nothing more to describe - just create your layout. In general integrating speedbar into the ECB-frame makes sense for people... * ...who like the speedbar way of handling directories and source-files but also like the ECB-way of displaying the buffer-contents (like methods and variables in a source-file). This people should use the option `ecb-use-speedbar-instead-native-tree-buffer' and set it to `dir'. * ...who like the speedbar way of browsing things like directories, files, file-contents etc. but who dislike the extra speedbar-frame. Note: It is not necessary to integrate speedbar if you only want parsing sources not supported by semantic. From version 1.94 on ECB supports native parsing and displaying of such sources (*note Non-semantic sources::)! Regardless the group you belong, with the speedbar-integration feature of ECB you can combine both worlds, the speedbar- and the ECB-world: 1. Choose a layout which either contains a directories- or a sources-window but not both of them(1). Because speedbar has also display-modes for buffers and info-nodes and some other useful things (which can be changed by the speedbar-command `speedbar-change-initial-expansion-list' we recommend layouts like "left15" or "leftright3" for using with speedbar. 2. Set the option `ecb-use-speedbar-instead-native-tree-buffer' to not nil. After this the chosen window of ECB will contain a full featured speedbar (the only difference to standard speedbar is not residing in an extra frame). Note: If you belong to the first group of people (s.a.) a similar effect and usability is available by setting `ecb-use-speedbar-instead-native-tree-buffer' to nil and setting `ecb-show-sources-in-directories-buffer' to not nil, because this combination displays also directories and sources in one window. So with the option `ecb-use-speedbar-instead-native-tree-buffer' you have the choice which way of displaying and handling "things" (directories, sources, methods...) you want (the speedbar- or the ECB-way). During speedbar is running within ECB (i.e. `ecb-use-speedbar-instead-native-tree-buffer' is not nil) the speedbar-command `speedbar' is disabled and the speedbar-command `speedbar-get-focus' switches between the speedbar-window and the edit-window(2). *IMPORTANT*: ECB can only integrate speedbar-versions >= 0.14beta1! If you use lower versions of speedbar `ecb-use-speedbar-for-directories' has no effect. ---------- Footnotes ---------- (1) Only one of them is needed if you use speedbar because speedbar displays directories and sources in one window. But if you like wasting space then you can also use a layout with both windows... (2) The standard behavior is switching between the speedbar-frame and the attached frame, but this make obviously no sense during running speedbar with ECB. Klaus > > Kai -- Klaus Berndl mailto: klaus.berndl@sdm.de sd&m AG http://www.sdm.de software design & management Carl-Wery-Str. 42, 81739 Muenchen, Germany Tel +49 89 63812-392, Fax -220