From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gDSEDQ1H6mKKsgAAbAwnHQ (envelope-from ) for ; Wed, 03 Aug 2022 11:59:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 6KWRDQ1H6mJQjQAA9RJhRA (envelope-from ) for ; Wed, 03 Aug 2022 11:59:41 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E36613314C for ; Wed, 3 Aug 2022 11:59:40 +0200 (CEST) Received: from localhost ([::1]:49426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJBAB-0006tM-It for larch@yhetil.org; Wed, 03 Aug 2022 05:59:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJB31-0007SR-C7 for emacs-orgmode@gnu.org; Wed, 03 Aug 2022 05:52:16 -0400 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]:37791) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJB2z-0002I4-TM for emacs-orgmode@gnu.org; Wed, 03 Aug 2022 05:52:15 -0400 Received: by mail-pg1-x534.google.com with SMTP id bh13so14662540pgb.4 for ; Wed, 03 Aug 2022 02:52:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=KM924vBQ2u3HIqV+WrktY9e8yq3ld2dyWQ6TutafkrE=; b=VMDPppZ+voK4KEI5Pr4C/0tmS5DtB56hm94Cfmd364FkATPK+gIX37YtWlJU19oxd/ Y+lPnzOXh9TeiiReMBLOxobMP/2m4zDKE/cHcczUEVsOgKZ6G7Y9IdfWXhk+sYRWC3T0 xctesQVKlCqMfjxcjWnADJ+wvdqf1SIj5a7+jOXJUwqpVOiW09V50SX91yRq4X06MO08 rmYDEruNcRYSKu7Yl8I339dBTalsVgVAe1gY+PA7nYNBY3aR7lcbZy+X4ob7wX+n1PSn bfqpf6wY1VZM5M812/E+NRqHsA7r4J2hh2phZ0FJKVkCy30R/UZT1YaW/jGdmbI20f/P 9mbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=KM924vBQ2u3HIqV+WrktY9e8yq3ld2dyWQ6TutafkrE=; b=qDDGCzHe1LZGNkTzi6co2e+5NwDAKWhlEB9IdpnewWESsoyWC4E40nF3EuN/l0lCVn Tu3T7akrEZkOQIen5KwLisZLzB3xuHPqvIX7l/dyQP+NqF9Zm4mJRUVu9LEsixhMJK5H gZ2NgEBAI8g4NszG1pI03xWxiR1ePkDBZTpCRNCj7JXYsx3xfaVmpYcrBcbo42VFvznR ILUZlh//khUKA7LMDjDHZGjCFdgepgQEICwcYywFbA2rAhp17JdiBtJyEdbHhewFsEyS 0zjJS5VBsIFfBHgPkBsZZQOa5omFaVleNBo5QplJ4iQtnJRSQiv7Ig0JjypUmFTHd4xM Yk/Q== X-Gm-Message-State: ACgBeo1vK0aNy80PVmmLAfod9xWFWF50MBeaicgorkXNvfdHqB0/QuF/ AdnT+fxYtBBGDzQvN7D/RK0= X-Google-Smtp-Source: AA6agR6thtGIT1dWxeXMpm9OhB7XDnsuedWba+QBp3yNB2FYwotxhkZBGDZwN8HJBtyiapHgjyjxIw== X-Received: by 2002:a62:4e54:0:b0:52d:3980:bd50 with SMTP id c81-20020a624e54000000b0052d3980bd50mr17184165pfb.60.1659520332345; Wed, 03 Aug 2022 02:52:12 -0700 (PDT) Received: from localhost ([115.154.175.57]) by smtp.gmail.com with ESMTPSA id t5-20020a17090340c500b0016be4d78792sm1368939pld.257.2022.08.03.02.52.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Aug 2022 02:52:11 -0700 (PDT) From: Ihor Radchenko To: Uwe Brauer Cc: emacs-orgmode@gnu.org Subject: Re: change headings to list but have a nested numeration? In-Reply-To: <87y1w8uqxd.fsf@mat.ucm.es> References: <87ilo6w80g.fsf@mat.ucm.es> <877d4luxb8.fsf@localhost> <87cze9li1w.fsf@mat.ucm.es> <87o7x5la6e.fsf@localhost> <87y1w8uqxd.fsf@mat.ucm.es> Date: Wed, 03 Aug 2022 17:53:18 +0800 Message-ID: <8735edk60h.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::534; envelope-from=yantar92@gmail.com; helo=mail-pg1-x534.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659520780; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=KM924vBQ2u3HIqV+WrktY9e8yq3ld2dyWQ6TutafkrE=; b=jPyYEhiFzpoxt5XDe/mdFSPP1ExmhYIPSrukUzyWcIQaCGQlnC8dioVQt8MioS3azZPElM YnCrw5mB8MN29i8aI27+mqKuf8Pu34gc1YxiXInCnQlmn/Z7KJXDGttxv+/F6BNpD+k1YT Bc3Fld+avWiflyWIwRdy3jB7rbUkvqzJefdf7B7NGyYqnFHo6mCJ02a0lSYL9a8oAKWSde uoM/xnjfmR7yJu2SKD6NeVjyLy0tB/2buo4dog4VxHuhSDFu82SoTHweGUjFX9lFC9cJsi YPIyQLllkrFadGqg7jGm6luPRvzDnIC6C/sC7ZmU5TTYCT3x1Z1rUAOMoZfTFw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659520780; a=rsa-sha256; cv=none; b=gouno7DruYksbcCX0hYqeZNqPiL/yx05WBlvDsJEgy3RHE2K0b0mku03lgf5DilqM1rrDy qo9N1lQnvCIx+NWcfzknCldMzdryW0GPfKPvBdH/uA7aT4AdTIcg/ZuRUvRF6L4YEDTGeE xeJKw8U56nQ+8hUMP6ycpWkK+vg2KK7HEjgAWA5P6zPR+uYNXVc2MlxIWMx2FNBBhE/XWv gZBqR+b3ptvSmZ4wmm5RYijX3WqFCPYpxoNmZay3Z2C9TWpL7tPmWKMarJ2sDfWYuMjjup zHVj2El4dFIFBj0nGIKZ0BqaIeVUhdcI+jGYb78oUwkoPsyNERosudaakt30Cg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=VMDPppZ+; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.41 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=VMDPppZ+; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E36613314C X-Spam-Score: -7.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: raCcUo3/SMtX Uwe Brauer 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 f= or 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=E2=84=A2 must take the work and produce a patch for org-= num. Best, Ihor