From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Engster Subject: Re: Org Writer's room Date: Thu, 06 Dec 2012 13:07:58 +0100 Message-ID: <87vccfpen5.fsf@engster.org> References: <87lidc6nc1.fsf@pank.eu> <50BFEA73.2050309@gmail.com> <87fw3jfvqf.fsf@ericabrahamsen.net> <87lidb7f2b.fsf@gmail.com> <50C06156.40301@gmail.com> <87zk1rpi64.fsf@engster.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgaFP-0004Hf-69 for emacs-orgmode@gnu.org; Thu, 06 Dec 2012 07:08:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TgaFH-0005Fe-6j for emacs-orgmode@gnu.org; Thu, 06 Dec 2012 07:08:11 -0500 Received: from randomsample.de ([83.169.19.17]:56989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgaFG-0005FZ-Ro for emacs-orgmode@gnu.org; Thu, 06 Dec 2012 07:08:03 -0500 In-Reply-To: (Matt Price's message of "Thu, 6 Dec 2012 06:50:35 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matt Price Cc: Eric Abrahamsen , Org Mode , Rainer M Krug Matt Price writes: > (1) do you know if it's possible to get the speedbar buffer in a > window instead of a frame? I initially thought that would be easy. Turns out it isn't. ECB uses all kinds of 'defadvice' to achieve that. There's a package sr-speedbar at http://www.emacswiki.org/SrSpeedbar but I don't know if that one's still working. > (2) org headings are not showing up for me with those two lines of > code. Evaluating > (speedbar-add-supported-extension ".org") > gives > "\\(\\(\\.\\(org\\|[ch]\\(\\+\\+\\|pp\\|c\\|h\\|xx\\)?\\|tex\\(i\\(nfo\\)?\\)?\\|el\\|emacs\\|l\\|lsp\\|p\\|java\\|js\\|f\\(90\\|77\\|or\\)?\\|ad[abs]\\|p[lm]\\|tcl\\|m\\|scm\\|pm\\|py\\|g\\|s?html\\|ma?k\\)\\)\\|\\([Mm]akefile\\(\\.in\\)?\\)\\)$" > > but trying to click on the "+" symbol in the speedbar frame next to an > org file gives only: > > Sorry, no support for a file of that extension > > Is it possible I need something else to make the extension work? I tried with 'emacs -Q' and it "works for me". Make sure you do the above *before* firing up speedbar. > A speedbar buffer in the same frame that shows only headings of the > current file would be fantastic... Instead of bending Speedbar to your will, maybe it's just easier if you'd look at other solutions. As I've written, Speedbar simply resorts to 'imenu' to get the tags. Calling 'imenu-add-to-menubar' will let you generate a menu entry for the headings; that should also work with every org file. Maybe there's a little package out there putting the imenu headings in a buffer; it can't be very hard to do. Just take a look http://emacswiki.org/emacs/ImenuMode as a starting point. -David