From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: ECB and org-mode Date: Tue, 20 Oct 2009 12:28:44 +0200 Message-ID: <029BE340-ACD7-44F4-9016-A2158D081B7D@gmail.com> References: <87k4z0yeqz.wl%ucecesf@ucl.ac.uk> <87y6ng6335.wl%ucecesf@ucl.ac.uk> <87iqehhp2n.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0BxZ-00067O-B8 for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 06:28:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0BxS-000638-OP for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 06:28:55 -0400 Received: from [199.232.76.173] (port=58697 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0BxS-00062w-1G for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 06:28:50 -0400 Received: from mail-ew0-f223.google.com ([209.85.219.223]:53572) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0BxR-0000T9-7R for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 06:28:49 -0400 Received: by ewy23 with SMTP id 23so5176243ewy.2 for ; Tue, 20 Oct 2009 03:28:48 -0700 (PDT) In-Reply-To: <87iqehhp2n.wl%ucecesf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: e.fraga@ucl.ac.uk Cc: emacs-orgmode@gnu.org Hi Eric, I have added this code to org.el, please verify that it works because I have wrapped it into eval-after-load. Thanks! - Carsten On Oct 14, 2009, at 7:18 PM, Eric S Fraga wrote: > At Tue, 13 Oct 2009 10:00:29 +0200, Carsten Dominik wrote: >> >> [snipped: messages regarding jumping into org file from ECB tree >> buffer and >> having the hierarchy displayed] >> >> If you find a solution, please post, maybe I can install it in >> org.el, >> using eval-after-load (I'm doing this already for a couple >> of other packages that let you jump right in the middle of an Org >> file). > > Carsten, > > The following seems to work: > > --8<---------------cut here---------------start------------->8--- > (defadvice ecb-method-clicked (after esf/org-show-context) > "Make sure hierarchy is visible when jumping into location from ECB > tree buffer" > (if (string= major-mode "org-mode") > (org-show-context) > ) > ) > --8<---------------cut here---------------end--------------->8--- > > I have tested this but not exhaustively and so maybe it depends on > some of my specific org-mode settings. I don't know if anybody else > uses ECB extensively but, if so, it would be great if they tried it. > I don't specifically (require 'ecb) anywhere so I don't think this is > required; I am, however, using emacs 23.1. > > Again, apologies for my minimal (yet increasing) elisp knowledge! > > You're welcome to use this in any way you wish (and, before you ask > (;-), I am still awaiting a response from the FSF re: copyright > assignment as I posted the signed page several weeks ago now). > > On a related note, I have not managed to figure out why the ECB tree > buffer shows only up to two levels of the org-mode heading hierarchy. > Ideally, I would like it to show all levels. Is there a variable in > org-mode that may be affecting this? > > Thanks, > eric - Carsten