From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: outline-demote incorrectly demotes leaf nodes Date: Fri, 21 Oct 2011 16:40:22 +0200 Message-ID: References: <20111018105406.921@usenet.piggo.com> <4E9D4E10.6070606@christianmoe.com> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59014) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHGLS-0006w5-OU for emacs-orgmode@gnu.org; Fri, 21 Oct 2011 10:45:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHGLN-0008Jp-RG for emacs-orgmode@gnu.org; Fri, 21 Oct 2011 10:45:14 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:55332) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHGGo-0007FU-UZ for emacs-orgmode@gnu.org; Fri, 21 Oct 2011 10:40:28 -0400 Received: by eye4 with SMTP id 4so4578386eye.0 for ; Fri, 21 Oct 2011 07:40:25 -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: Michael Brand Cc: emacs-orgmode@gnu.org, =?iso-8859-1?Q?S=E9bastien_Delafond?= , Sanjoy Mahajan On Oct 19, 2011, at 5:39 PM, Michael Brand wrote: > Hi Carsten >=20 > 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. >=20 > On Wed, Oct 19, 2011 at 09:14, Carsten Dominik > wrote: >> Another option, if you prefer the C-> and C-< bindings is this: >>=20 >> (add-hook 'org-mode-hook >> (lambda () >> (define-key org-mode-map [(control ?<)] 'org-promote-subtree) >> (define-key org-mode-map [(control ?>)] 'org-demote-subtree))) >=20 > My suggestion is something like >=20 > (define-key org-mode-map [remap outline-promote] 'org-promote-subtree) > (define-key org-mode-map [remap outline-demote] 'org-demote-subtree) > [...] >=20 > 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. >=20 > 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. Would you like to carefully think about which other functions you might = want to have remapped, and then prepare a patch? - Carsten=