emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [bug] misbehavior of org-shiftmetaup
@ 2007-04-12 10:36 Leo
  2007-04-13  9:50 ` Empty lines in subtrees (was: [bug] misbehavior of org-shiftmetaup) Leo
  0 siblings, 1 reply; 2+ messages in thread
From: Leo @ 2007-04-12 10:36 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 607 bytes --]

Dear Carsten,

I think this bug has been there for quite some time as it is also in
4.67c.

To reproduce:
   o  Open the attached file and set it in org-mode
   o  Go to "* Heading 1" and issue 'C-x n s'
   o  Move cursor to subtree: "** Item 2"
   o  M-x org-shiftmetaup

Then item 1 and item 2 will be joined like this:

,----
| ** Item 2
|    Go to supermarket and get a printer** Item 1
`----

This happens quite often with narrowing.

It could also happen without narrowing when 'require-final-newline' is
set to nil.

Thanks,
-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)

[-- Attachment #2: sample.org --]
[-- Type: text/plain, Size: 83 bytes --]

* Heading 1
** Item 1
** Item 2
   Go to supermarket and get a printer
* Heading 2

[-- Attachment #3: Type: text/plain, Size: 149 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Empty lines in subtrees (was: [bug] misbehavior of org-shiftmetaup)
  2007-04-12 10:36 [bug] misbehavior of org-shiftmetaup Leo
@ 2007-04-13  9:50 ` Leo
  0 siblings, 0 replies; 2+ messages in thread
From: Leo @ 2007-04-13  9:50 UTC (permalink / raw)
  To: emacs-orgmode

----- Me (2007-04-12) wrote:-----

> Dear Carsten,
>
> I think this bug has been there for quite some time as it is also in
> 4.67c.
>
> To reproduce:
>    o  Open the attached file and set it in org-mode
>    o  Go to "* Heading 1" and issue 'C-x n s'
>    o  Move cursor to subtree: "** Item 2"
>    o  M-x org-shiftmetaup
[...]

This bug is now fixed in org 4.71.

However, it will now add an empty line to the subtree, and then bring
all empty lines along when org-shiftmetaup. So after shuffling a few
times, users can be left with:

,----
| * Heading 1
| ** Item 1
|    Read this book.
| ** Item 2
|    Go to supermarket and get a printer
| 
| 
| 
| 
| * Heading 2
`----

I guess this is because:

When narrowing to subtree, the "newline" at the end of the last subtree
is left out and thus org-shiftmetaup introduce another one.

Regards,
-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-04-13  9:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-12 10:36 [bug] misbehavior of org-shiftmetaup Leo
2007-04-13  9:50 ` Empty lines in subtrees (was: [bug] misbehavior of org-shiftmetaup) Leo

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).