From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: outline-demote incorrectly demotes leaf nodes Date: Wed, 19 Oct 2011 17:39:54 +0200 Message-ID: References: <20111018105406.921@usenet.piggo.com> <4E9D4E10.6070606@christianmoe.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGYFO-0007O7-FB for emacs-orgmode@gnu.org; Wed, 19 Oct 2011 11:40:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGYFJ-0008Im-AZ for emacs-orgmode@gnu.org; Wed, 19 Oct 2011 11:40:02 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:48415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGYFI-0008IW-Ud for emacs-orgmode@gnu.org; Wed, 19 Oct 2011 11:39:57 -0400 Received: by wwj40 with SMTP id 40so2104620wwj.30 for ; Wed, 19 Oct 2011 08:39:55 -0700 (PDT) In-Reply-To: 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: Carsten Dominik , Sanjoy Mahajan , =?ISO-8859-1?Q?S=E9bastien_Delafond?= Cc: emacs-orgmode@gnu.org Hi Carsten On 18.10.2011, at 20:03, Sanjoy Mahajan wrote: > I do worry about one point, namely that C-c C-> (outline-demote) should still > work. And it does work in regular outline mode. For example, if I rename my > test file to c.otl and then use C-c C-> on the main heading, all the subtrees > are demoted as I expected. Whereas in org mode the leaf subtree gets a space > instead of a * when it is being demoted. On Wed, Oct 19, 2011 at 09:14, Carsten Dominik wrote: > Another option, if you prefer the C-> and C-< bindings is this: > > (add-hook 'org-mode-hook > (lambda () > (define-key org-mode-map [(control ?<)] 'org-promote-subtree) > (define-key org-mode-map [(control ?>)] 'org-demote-subtree))) My suggestion is something like (define-key org-mode-map [remap outline-promote] 'org-promote-subtree) (define-key org-mode-map [remap outline-demote] 'org-demote-subtree) [...] permanently built into Org mode (not in org-mode-hook) for these and maybe even a few more outline-* bindings to get the incompatible outline-* bindings out of the way from within Org mode. This remap does not affect the bindings in Outline mode and resolves the issue of the OP in Org mode, independent of, to which key any user might have mapped outline-*mote. Michael