emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Felix Wiemuth <felixwiemuth@hotmail.de>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Bug: org-list-make-subtree produces incorrect level [9.2.3 (9.2.3-20-g31873e-elpaplus @ /home/felix/.emacs.d/elpa/org-plus-contrib-20190527/)]
Date: Mon, 10 Jun 2019 00:20:44 +0200	[thread overview]
Message-ID: <87pnnml7sz.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <DB6PR0401MB25981E3931E58EBFCF74B2E1AE1A0@DB6PR0401MB2598.eurprd04.prod.outlook.com> (Felix Wiemuth's message of "Sat, 1 Jun 2019 19:30:55 +0000")

Hello,

Felix Wiemuth <felixwiemuth@hotmail.de> writes:

> In some situations, org-list-make-subtree does not create the tree at
> the desired level. For example, in the following case, when executing
> the command on the first list element, the resulting level is 3 instead
> of 2:
>
> * L1
>   - List Item
> ** L2
>
> The result is:
>
> * L1
> *** List Item
> ** L2
>
> Expected result (as in most situations):
>
> * L1
> ** List Item
> ** L2
>
> The last item (L2) is necessary for this to happen, whether the list has multiple items or
> subitems does not matter. The identation of the list item does not
> matter either.
>
> The same happens in deeper levels:
>
> * L1
> ** L2a
> ** L2b
>    - List Item
> *** L3
>
> It seems that the resulting tree is always put one level deeper than a
> (deeper) heading following without a newline. Maybe this was intended
> but it feels unintuitive to me.
>
> * L1
>   - List Item
> *** L3
>
> results in
>
> * L1
> **** List Item
> *** L3
>
> but
>
> * L1
>   - List Item
>
> *** L3
>
> results in
>
> * L1
> ** List Item
>
> *** L3
>
> I think I also observed a case where the resulting level was 2 instead
> of 4, so the other way round, but unfortunately I cannot reproduce it.

I think this is now fixed in master.

Thank you.

Regards,

-- 
Nicolas Goaziou

      reply	other threads:[~2019-06-09 22:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-01 19:30 Bug: org-list-make-subtree produces incorrect level [9.2.3 (9.2.3-20-g31873e-elpaplus @ /home/felix/.emacs.d/elpa/org-plus-contrib-20190527/)] Felix Wiemuth
2019-06-09 22:20 ` Nicolas Goaziou [this message]

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=87pnnml7sz.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=felixwiemuth@hotmail.de \
    /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).