From: Eric S Fraga <esflists@gmail.com>
To: Alain.Cochard@unistra.fr
Cc: emacs-orgmode@gnu.org
Subject: Re: How to move up/down a headline but not the subtree?
Date: Thu, 05 Jul 2018 14:39:45 +0100 [thread overview]
Message-ID: <87po01iyxq.fsf@gmail.com> (raw)
In-Reply-To: <23358.2552.656578.663056@frac.u-strasbg.fr> (Alain Cochard's message of "Thu, 5 Jul 2018 14:07:20 +0200")
On Thursday, 5 Jul 2018 at 14:07, Alain.Cochard@unistra.fr wrote:
> Eric S Fraga writes on Thu 5 Jul 2018 11:46:
>
> > Well, it's a deterministic set of steps so you could record a macro
> > to do the selection and kill? Then all you have to do is move and
> > yank?
>
> Would still be long...
You save the keyboard macro as a key binding and it would be no longer
than what you were asking for? Maybe one key stroke longer.
> > What was not clear in your OP was what happens to the first
> > subheading? Should it be promoted or does it suddenly become a
> > child of another main heading?
>
> In my mind, everything except the headline and its associated text
> would stay unchanged, though your questions make me realize that a
> reasonable option would be that the whole subtree be promoted (but
> probably not just the 1st subheading).
But, as others have noted, this is a change of (semantic) structure and
not well defined which is arguably why there's no automatic way of doing
what you want.
--
Eric S Fraga via Emacs 27.0.50, Org release_9.1.13-783-g97fac4
next prev parent reply other threads:[~2018-07-05 13:39 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-05 9:40 How to move up/down a headline but not the subtree? Alain.Cochard
2018-07-05 9:44 ` Eric S Fraga
2018-07-05 10:38 ` Alain.Cochard
2018-07-05 10:46 ` Eric S Fraga
2018-07-05 12:07 ` Alain.Cochard
2018-07-05 13:39 ` Eric S Fraga [this message]
2018-07-05 10:46 ` Neil Jerram
2018-07-05 11:28 ` Alain.Cochard
2018-07-05 12:53 ` Neil Jerram
2018-07-06 12:45 ` Alain.Cochard
2018-07-10 17:51 ` Bernt Hansen
2018-07-05 10:50 ` Nicolas Goaziou
2018-07-06 11:59 ` Alain.Cochard
2018-07-07 8:20 ` Nicolas Goaziou
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87po01iyxq.fsf@gmail.com \
--to=esflists@gmail.com \
--cc=Alain.Cochard@unistra.fr \
--cc=emacs-orgmode@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.