From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id QCvlGABlz2b2hQAAe85BDQ:P1 (envelope-from ) for ; Wed, 28 Aug 2024 17:57:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id QCvlGABlz2b2hQAAe85BDQ (envelope-from ) for ; Wed, 28 Aug 2024 19:57:20 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmx.net header.s=s31663417 header.b=m6H49pyi; 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"; dmarc=pass (policy=quarantine) header.from=gmx.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1724867840; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=nYIckT/u4cGDiaSxIxbDvQH9UCdzOEgV0YWPk+wDhW4=; b=fCzC5Y9F8GoBBAVyDzJYAAcatmIq7GG3rNKzwrko2pvFk9tT+iIL92igAQqa4Df03WfHM6 fraUUlTiD232Z4cnPclwIaPvvBRL2namo2pqaan1iHi4BVKhvIFoILlV1K4SAHG073Iovy EAlwR9yFpwELdFiE9aKdCHjzaIabuF7bqYGiVW98pzIs2AaGbc+pMD7fCdNsybqMF1Hz97 kIaaSfT9kPH278XtjJvOhbJgxDANAvUWd2a558P9p0WOXXbb06ce7nAzCimH0lhII6T3Rg rM5gNMf34v+G4dG+oiYH2w2ONxYLXRkTgrPtVvzVlFFSrHk3/tMAh6Jv3wddxQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmx.net header.s=s31663417 header.b=m6H49pyi; 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"; dmarc=pass (policy=quarantine) header.from=gmx.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724867840; a=rsa-sha256; cv=none; b=Si/csALx2POR77jZkmNqeIAhHO+omvzUGXUJAtCJgRwn487Gz33LCpFESu7Hn4wB7LCcpj uBqNuxLlOf9Osjqbvh0EZw39u5j/rqQMVNG2YeWi5RQbcgvVmbsAK8a8zF/i26DwjwXBxp WA83KoHcMV6/XjuOnj/N0wT0QUFokrDUEttuqLE473qzOt9NJppdZgSJndSotTfRqd+w4m f5MtGIpORawFynkHYEU6Xr+lMnzrQd4qe0obXtYXaODXv3d/393qAr6z7+tK0w1+88PEgL nbQOmne3BJTbpl3LWGE//5lCDfm6eA5csydZxQRrwMhfFYsnGDlIEcGEcGv30w== 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 2628A6A40D for ; Wed, 28 Aug 2024 19:57:20 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sjMu6-00082A-Dg; Wed, 28 Aug 2024 13:56:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sjMu4-0007ra-A3 for emacs-orgmode@gnu.org; Wed, 28 Aug 2024 13:56:20 -0400 Received: from mout.gmx.net ([212.227.15.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sjMu0-0005uo-JZ for emacs-orgmode@gnu.org; Wed, 28 Aug 2024 13:56:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1724867767; x=1725472567; i=telegraph@gmx.net; bh=nYIckT/u4cGDiaSxIxbDvQH9UCdzOEgV0YWPk+wDhW4=; h=X-UI-Sender-Class:From:To:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=m6H49pyitIjwDAYXeWoU62+MuUOGfk9+rcXhl/Lzk891aBlY6PtYYvXMotSMs5Vn rHRfP1HUuMlVgMu4+f/11L+Fr/ap89W36Ec20abFiPRC+1vuHKNtNDI+lKm8Cht3g CzmSpeHk02Yl5JGujPpDi0b88cYxX/tNNNE5OpxNkQiJIpv5lpqQHRZD3zoAgvdwZ FwpEr/gWSQtTdqL/4XmjqfWylkb5k0G+ghBA8HUIZqCL22luA0JwFNgfApqsao7O4 iq5FYo5IcOEGsHthmkSB7teMQYcVUfmd5RWdX9vdTTql1FSpjV59puXFIyBKZ+XJY zWxD6Mp+ta57Nwadqg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from localhost ([95.90.234.156]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mwfai-1ruJmH2QV0-00rM6j; Wed, 28 Aug 2024 19:56:07 +0200 From: Gregor Zattler To: Sharon Kimble , emacs-orgmode@gnu.org Subject: Re: How to auto-renumber chapters In-Reply-To: <87mskxrqdx.fsf@skimble09.plus.com> References: <87mskxrqdx.fsf@skimble09.plus.com> Mail-Followup-To: Sharon Kimble , emacs-orgmode@gnu.org Date: Wed, 28 Aug 2024 19:55:32 +0200 Message-ID: <87v7zkbkh7.fsf@no.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:ql+JMo9zWrPAOTZcknoccXdao7H4Ue6dhMGPjg/4Vkmh2N6qc3L fu8YFt3gIVj1PLQc+jUOdMaqoOFJ9wQzidIM2zjXZOq2Zyj8iEan4ymyUTBIBLWxt+bgAMi Qn3FKqeOdMzvy8O4vxgzHRRcSiKyPLIOPgDbyMtAppd6Qsm/d938tzNppDjjAKJK1mpMJ7Q 88Mgdz2J4UFKe5kiVMkFA== UI-OutboundReport: notjunk:1;M01:P0:/Yr2xMsan/0=;QKKWLB4gwmfe/bO/k1zG/bhXxe9 sstHNWn26+G6WA3ohfCSI/QitTh21G0SkPMa4iZYWUpWz4TBQmmI6g1LHB8PpQNOcgjSb6Hrg nE10f7fmHGIU4VUvaeC0y45qfgAbGEnE0U2S8FCsd2H99PXHLfs8uBdeCDSX/H9Rr93RnIZG5 cbJMuEDTrIcc7MImIhNHinSMxTcxvMkJgv+xt3Kzfny0zJpXJTbcv25Vj9P0AciWt0i+XPz0S p5Lw3gxAB7WmY7m3it0XJbZ2KcTRR+zeLLmi+rO8C9r2SD2R2Kl7Eb6Ikn/nlME9aQVPO/KNH JoJQVXrbNKyfRhKwr6tswSE7qIExkJI+24fpirvP4pdcjEU+6xplZhnXk/9dg0Cz5YwYuz6xO HHRpkhU2rb49BmijTXF6LvLkh9tt9j6V9Qs3UhInrjjUKnk0eBuwSfmtdNp4JtmK+wGK40SHq zUlyNceENR5wI06ysaJq0EdZ4NEVQmdfj7q5a7GbyAPcxD4aL/ABOXG1evDmHsU+fSsOLRIOm 9juRYSmBbibG3WfSV6sU5swlNRFznavH+q99f8dZwaKId0INB3OCdpXCsW+vtkKKjDU6TrboL CBEHESSawBlzQ59B7jCg4WrN1a2zTjRuIsQ1fbWooI+kfIhTwSaRRN5pRf86VnpK4Y/dnmF5I TwJ4yN0UQ9OpAlw4qHZ7Y6bMmR/c+P6j0IlCSDsb89q84cWcD6n075mv4Ezu2YNt4zWM9/Luw tRQ9FQ8nWmMF/Vx8hCx6qY73GICq6RuWUWFw1bethC/Hdx23pK/+d0zo1+6xd1GOJ/Ojw2PMx ARbNHY6zNjmD9oFJxvecAZng== Received-SPF: pass client-ip=212.227.15.18; envelope-from=telegraph@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -10.78 X-Migadu-Queue-Id: 2628A6A40D X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -10.78 X-TUID: jxxK9kgP91zQ Hi Sharon, * Sharon Kimble [2024-08-28; 09:41 +01]: > I'm writing a fiction book, and have just added several chapters from a p= revious draft to it. > > As a result I now have > > ** Chapter 2 > blah=20=20=20=20=20 > > ** Chapter 2 > blah de blah > > ** Chapter 3 > more blahing > > How can I get these new chapters to autorenumber themselves please, so th= at they will show Chapter 2, Chapter 3 and Chapter 4?=20=20=20=20=20=20=20= =20 Andr=C3=A1s' solution shows emacs' greatness. But it might be easier to get rid of numbers in the /text/ of headings and instead do M-x org-num-mode, which dynamically shows heading numbers like 1. Heading 2. Heading 1.1 Heading ... with default settings. There plenty of possibilities for configuration, see (info "(org)Dynamic Headline Numbering") [evaluate after the last closing parenthesis] or the commentary section of org-num.el Ciao; Gregor=20