From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: outline-magic incompatible with org-mode Date: Mon, 13 Mar 2006 09:59:56 +0100 Message-ID: <1366943dd9696b16ade1100b70e42776@science.uva.nl> References: <32727.1142234441@mafu.ws.chemie.tu-muenchen.de> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FIiuQ-00026v-90 for emacs-orgmode@gnu.org; Mon, 13 Mar 2006 04:00:10 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FIiuO-00026h-FC for emacs-orgmode@gnu.org; Mon, 13 Mar 2006 04:00:09 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FIiuO-00026d-BA for emacs-orgmode@gnu.org; Mon, 13 Mar 2006 04:00:08 -0500 Received: from [146.50.4.51] (helo=imap.science.uva.nl) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FIiyK-0003GO-0y for emacs-orgmode@gnu.org; Mon, 13 Mar 2006 04:04:12 -0500 In-Reply-To: <32727.1142234441@mafu.ws.chemie.tu-muenchen.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+dominik=science.uva.nl@gnu.org Errors-To: emacs-orgmode-bounces+dominik=science.uva.nl@gnu.org To: thomas.baumann@ch.tum.de Cc: emacs-orgmode@gnu.org For those of you who don't know, outline-magic is an older package that adds visibility cycling and structure editing to outline-mode and outline-minor-mode. All this stuff is already in org-mode. I guess you are using to get cycling support in other modes? outline-magic modifies the keymap of outline-mode. Since org-mode is derived from outline-mode, it inherits all those keybindings, and then overwrites them where needed. The problem here seems to be that org.el does not explicitly bind TAB to org-cycle. The only binding for org-cycle currently is C-i. If TAB is not bound otherwise, that binding gets passed through from C-i to TAB, but if there is an explicit binding for TAB, it takes precedence. Could you try if it helps to add (define-key org-mode-map [(tab)] 'org-cycle) somewhere near the end of org.el? - Carsten On Mar 13, 2006, at 8:20, Thomas Baumann wrote: > > It took me a while to get the reason for this strange behaviour of TAB > in > org-mode on my computer: > > TAB worked fine in folding and unfolding the headings, but failed > otherwise. C-i worked flawlessly in all situations. > > The reason for loosing the context sensitive behaviour of TAB was a > concurring key-binding in outline-magic, which I still use in lengthy > documents. > > In outline-magic TAB is bound to outline-cycle, whereas org-mode binds > to org-cycle. TAB and are different keys, therefore in > a standard setup most of the intuitive behaviour of org-mode gets lost. > > Not a common situation but maybe one can patch outline-magic or > org-mode. > > Greetings > Thomas > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477