From: Carsten Dominik <dominik@uva.nl>
To: Samuel Wales <samologist@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: feature request: org-yank to call org-paste-subtree
Date: Tue, 28 Oct 2008 09:10:43 +0100 [thread overview]
Message-ID: <BD1CBEE9-8FE2-4642-868D-917DC25039A4@uva.nl> (raw)
In-Reply-To: <20524da70810252137k1545b20bobbf162360dc251ad@mail.gmail.com>
Hi Samuel,
this is not the default behavior in the latest git, below
is the preliminary documentation. Depending on the reactions I get,
I might still turn this off by default. However, I like it
and will keep it on.
Thanks!
- Carsten
---------------------------------------------------------------------
When yanking a cut/copied subtree or a series of trees, even
the nomal yank key `C-y' does now adjust the level of the tree
to make it fit into the current outline position, without
loosing its identity, and without swallowing other subtrees.
This uses the command `org-past-subtree'. An additional
change in that command has been implemented: Normally, this
command picks the right outline level from the surrounding
*visible* headlines, and uses the smaller on. So it the
cursor is between a level 4 and a level 3 headline, the tree
will be pasted as level 3. Now, if the cursor is actually
*at* the beginning of a headline, the level of that headline
will be used. So lets say you have a tree like this:
* Level one
** Level two
(1)
(2)* Level one again
with (1) and (2) indicating possible cursor positions for the
insertion. When at (1), the tree will be pasted as level 2.
When at (2), it will be pasted as level 1.
If you do not like `C-y' to behave like this, configure the
variable `org-yank-adjusted-subtrees'.
--------------------------------------------------------------------
On Oct 26, 2008, at 5:37 AM, Samuel Wales wrote:
> I am not up to coding this, but here is the defcustom.
>
> (defcustom org-yank-adjust nil
> "Non-nil means that, where possible, org-yank will call org-paste-
> subtree
> instead of yank. This adjusts the level of the yank to avoid
> swallowing
> succeeding headlines."
> :group 'org-edit-structure
> :type 'boolean)
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2008-10-28 8:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-26 4:37 feature request: org-yank to call org-paste-subtree Samuel Wales
2008-10-26 6:30 ` Carsten Dominik
2008-10-26 8:35 ` Samuel Wales
2008-10-28 8:10 ` Carsten Dominik [this message]
2008-10-28 8:16 ` Carsten Dominik
2008-10-28 8:32 ` Manish
2008-10-28 8:53 ` Carsten Dominik
2008-11-01 0:23 ` Samuel Wales
2008-11-13 22:32 ` Samuel Wales
2008-11-13 22:32 ` Samuel Wales
2008-11-14 6:50 ` Carsten Dominik
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=BD1CBEE9-8FE2-4642-868D-917DC25039A4@uva.nl \
--to=dominik@uva.nl \
--cc=emacs-orgmode@gnu.org \
--cc=samologist@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 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.