emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: Uwe Brauer <oub@mat.ucm.es>
Cc: emacs-orgmode@gnu.org
Subject: Re: change headings to list but have a nested numeration?
Date: Wed, 03 Aug 2022 17:53:18 +0800	[thread overview]
Message-ID: <8735edk60h.fsf@localhost> (raw)
In-Reply-To: <87y1w8uqxd.fsf@mat.ucm.es>

Uwe Brauer <oub@mat.ucm.es> writes:

>> FYI, we have a built-in org-num-mode.
> Thanks for pointing this out to me, but it does not work for lists only for headings (as its doc string explains), but lists are based on indenting so that seems a lot harder than headings

You are indeed right that org-num only works for headings.

As for lists, there is not as much difference actually, org-list-struct
is anyway parsed once you call something like org-element-at-point. One
can simply traverse the struct to determine that numbering.

Of course, someone™ must take the work and produce a patch for org-num.


      reply	other threads:[~2022-08-03  9:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-09 16:43 change headings to list but have a nested numeration? Uwe Brauer
2022-07-10  9:33 ` Ihor Radchenko
2022-07-13  5:04   ` Uwe Brauer
2022-07-31 12:48     ` Ihor Radchenko
2022-08-01 11:46       ` Uwe Brauer
2022-08-03  9:53         ` Ihor Radchenko [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:

  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=8735edk60h.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=oub@mat.ucm.es \


* 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


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