* [bug] killing and yanking _sometimes_ doesn`t indent correctly
@ 2011-08-09 14:19 Detlef Steuer
2011-08-10 16:43 ` David Maus
0 siblings, 1 reply; 3+ messages in thread
From: Detlef Steuer @ 2011-08-09 14:19 UTC (permalink / raw)
To: emacs-orgmode
Hi!
Using the following files I can reproduced a bug I encountered.
inbox.org
---
* Inbox
** TODO first
** TODO second
---
fileto.org
---
* What todo
** Subheading 1
** Subheading 2
---
Now, if I place the cursor in inbox.org on
** TODO first
hit
C-c C-x C-w
move to fileto.org and hit
C-c C-x C-y whlie the cursor is in the empty line after
** Subheading 1
I get
---
** Subheading 1
* TODO first
** Subheading 2
---
Should be
---
** Subheading 1
*** TODO first
** Subheading 2
---
In larger files it somestimes works, sometimes behaves this way.
While experimenting I found, when yanking while the cursor is _at the
end_ of the line
** Subheading 1
I get
--
* What todo
** TODO first
** Subheading 2
--
so the lovely subheading 1 gets eaten by my yank.
Shouldn`t I guess.
Orgmode:
release_7.7-38-g1b379
Org-mode version 7.7 (release_7.7.38.g1b379)
Emacs: GNU Emacs 23.2.1 (x86_64-suse-linux-gnu, GTK+ Version 2.22.1) of 2011-02-22 on build34
Regards
Detlef
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [bug] killing and yanking _sometimes_ doesn`t indent correctly
2011-08-09 14:19 [bug] killing and yanking _sometimes_ doesn`t indent correctly Detlef Steuer
@ 2011-08-10 16:43 ` David Maus
2011-08-10 19:08 ` Detlef Steuer
0 siblings, 1 reply; 3+ messages in thread
From: David Maus @ 2011-08-10 16:43 UTC (permalink / raw)
To: Detlef Steuer; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1465 bytes --]
Hi Detlef,
At Tue, 9 Aug 2011 16:19:26 +0200,
Detlef Steuer wrote:
>
> Hi!
>
> Using the following files I can reproduced a bug I encountered.
>
> [...]
Thanks for reporting. I pushed a fix for both problems, the wrong
level and eating the existing headline.
However:
> Should be
>
> ---
> ** Subheading 1
> *** TODO first
>
> ** Subheading 2
> ---
No, it should be:
** Subheading 1
** TODO first
** Subheading 2
C-h f org-paste-subtree RET
,----
| org-paste-subtree is an interactive Lisp function in `org.el'.
|
| (org-paste-subtree &optional LEVEL TREE FOR-YANK)
|
| Paste the clipboard as a subtree, with modification of headline level.
| The entire subtree is promoted or demoted in order to match a new headline
| level.
|
| If the cursor is at the beginning of a headline, the same level as
| that headline is used to paste the tree
|
| If not, the new level is derived from the *visible* headings
| before and after the insertion point, and taken to be the inferior headline
| level of the two. So if the previous visible heading is level 3 and the
| next is level 4 (or vice versa), level 4 will be used for insertion.
| This makes sure that the subtree remains an independent subtree and does
| not swallow low level entries.
`----
To get level 3 you can call paste with numeric prefix of 3 or indicate
the desired level with three stars.
Best,
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de
[-- Attachment #2: Type: application/pgp-signature, Size: 230 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [bug] killing and yanking _sometimes_ doesn`t indent correctly
2011-08-10 16:43 ` David Maus
@ 2011-08-10 19:08 ` Detlef Steuer
0 siblings, 0 replies; 3+ messages in thread
From: Detlef Steuer @ 2011-08-10 19:08 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 259 bytes --]
On Wed, 10 Aug 2011 18:43:57 +0200
David Maus <dmaus@ictsoc.de> wrote:
> No, it should be:
>
> ** Subheading 1
> ** TODO first
> ** Subheading 2
>
> C-h f org-paste-subtree RET
Duh. You are right of course.
Thank you for fixing!
Detlef
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-08-10 19:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-09 14:19 [bug] killing and yanking _sometimes_ doesn`t indent correctly Detlef Steuer
2011-08-10 16:43 ` David Maus
2011-08-10 19:08 ` Detlef Steuer
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.