From: Carsten Dominik <carsten.dominik@gmail.com>
To: Michael Brand <michael.ch.brand@gmail.com>
Cc: emacs-orgmode@gnu.org, "Sébastien Delafond" <sdelafond@gmail.com>,
"Sanjoy Mahajan" <sanjoy@olin.edu>
Subject: Re: outline-demote incorrectly demotes leaf nodes
Date: Fri, 21 Oct 2011 16:40:22 +0200 [thread overview]
Message-ID: <D5805C42-25CD-4BA9-A4C1-B47A0837C05E@gmail.com> (raw)
In-Reply-To: <CALn3zoicT8JUZaWrgK2xWA3zBHTPs2o1-DhCYVXSSiW=fmc4QA@mail.gmail.com>
On Oct 19, 2011, at 5:39 PM, Michael Brand wrote:
> 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
> <carsten.dominik@gmail.com> 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.
Would you like to carefully think about which other functions you might want to have remapped, and then prepare a patch?
- Carsten
next prev parent reply other threads:[~2011-10-21 14:45 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-18 8:55 outline-demote incorrectly demotes leaf nodes Sébastien Delafond
2011-10-18 9:59 ` Christian Moe
2011-10-18 10:22 ` Bernt Hansen
2011-10-18 11:21 ` Sébastien Delafond
2011-10-18 11:27 ` Bernt Hansen
2011-10-18 18:03 ` Sanjoy Mahajan
2011-10-18 18:57 ` Nick Dokos
2011-10-19 7:14 ` Carsten Dominik
2011-10-19 13:57 ` Sanjoy Mahajan
2011-10-19 15:39 ` Michael Brand
2011-10-21 14:22 ` Bastien
2011-10-21 14:40 ` Carsten Dominik [this message]
2011-10-21 16:08 ` Bastien
2011-10-22 8:15 ` Michael Brand
2011-11-09 18:16 ` Michael Brand
2011-12-11 18:44 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D5805C42-25CD-4BA9-A4C1-B47A0837C05E@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=michael.ch.brand@gmail.com \
--cc=sanjoy@olin.edu \
--cc=sdelafond@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).