From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 iNReJjvUUGPqzAAAbAwnHQ (envelope-from ) for ; Thu, 20 Oct 2022 06:53:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id ABRmJjvUUGM3XgAAauVa8A (envelope-from ) for ; Thu, 20 Oct 2022 06:53:15 +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 501064556B for ; Thu, 20 Oct 2022 06:53:15 +0200 (CEST) Received: from localhost ([::1]:35846 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olNYP-0007kT-W3 for larch@yhetil.org; Thu, 20 Oct 2022 00:53:14 -0400 Received: from [::1] (port=34918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olNYP-0006Y9-Sd for larch@yhetil.org; Thu, 20 Oct 2022 00:53:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47468) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olNXl-0006Y0-Vc for emacs-orgmode@gnu.org; Thu, 20 Oct 2022 00:52:33 -0400 Received: from mout01.posteo.de ([185.67.36.65]:43921) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olNXj-0004Q1-Uc for emacs-orgmode@gnu.org; Thu, 20 Oct 2022 00:52:33 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9EF8E240028 for ; Thu, 20 Oct 2022 06:52:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1666241549; bh=ePbqYdUYXj5OqIYzfqCRI4Y5kppwhrU7D7Z9BET+4zk=; h=From:To:Cc:Subject:Date:From; b=P7/Nl/OIAyZnWXHG8ksCj+of5R288EGU6GWfHFQNhmMO4dpuvjmGrwG7+JmRU0H5/ WZSNXVigluLJOMDdnf/Jv/yPzjavAa0uf4sSBrAMFY7Hjk0Ra0fyd2tAn/+JxLOaW0 LYrjhZ8iLOXk5F+7bh232OTqeGQK2shdN4Of5DL3pUqbWiyqs+1FBiBj7UEBCFBgRH zHd0rEfK4U2S4qKSyMQa+g5ZvwhsPELd//5CIX85CTySHTDC+jFs48BqQ3GpnTeuW0 MKjYEOo2xsv9WWOuAV+oroxYiAQwHYBXBoU4FRIsIB1ucK6RDbom0n3PFsCvbUGPi+ AjCqTtZbLB8Pg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MtFZd2pqsz9rxB; Thu, 20 Oct 2022 06:52:24 +0200 (CEST) From: Ihor Radchenko To: Ruijie Yu Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-num-mode does not clear previous numbers [9.5.5 (9.5.5-g9ce472 @ /home/user/.config/emacs/straight/build/org/)] In-Reply-To: References: Date: Thu, 20 Oct 2022 04:53:09 +0000 Message-ID: <87edv39juy.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666241595; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=GbvzXJxUxeTM2s+7eK/x62q+OmViJF8+5J2iSEi2HtM=; b=mhE7xo+fLifI4N4JRS+fBQ9AezQ7Zr+6TLI6h5zO9wyFcWLLaUiP2Q3U5EW8A5bV4y8vir lWCS8SmqeVPL8t9Smo4wOouvJCrXLMjNmjSLN6t8a9bSSadQ6/dZ6TvQllZKLHp4UnylRH u7F14vD1ix9nCWHwBQNLQp+GsmwFONrK7TVhnCkj5AUCW6CtbZDn839cTDkmzOnnegKtGG nK+0FObMybd/tTULEYPWfsGqAwcoiPbm/5KpdNIWIqEII2CNIHWoPzoLE4GxrgkTihcpYt TNhUyNS6I++E8GUEf0K+vNoQoLvIcYAKTRQfGdlTv/YgdW/rbMIoKx3C34kSkA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666241595; a=rsa-sha256; cv=none; b=fl+oJU9Oizj+tSz4gFomSLJaQYg6VlJx3mN4DBFiTGro5d1eOmN5LXGyexfkK9D8xHmsQE 0F9ikbviTC166XnI5W69rJgL9WEwXeGRSJPY/tDyJhI39cvopyQWFVR2AWVK4E9PpVprSv qCDNkDvIS9oAX1Dieg5U3myGU+qWFfsDQHZZt1qLWo23lpKmQ6StZvgVs6F8YhfnHp2LOA 5XY3AGRI9c1cb7YJAAiOpbXliQqPQIBk25Pqc7UJb/vZNoOjsLjPm++kioPKwH796xPDuz hUIfkwtiafq1PhQ9ltavu0q/38o5Ut2hGYg7huRSHtIsCibx753JeBMsihZMcQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="P7/Nl/OI"; dmarc=pass (policy=none) header.from=posteo.net; 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: -1.93 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="P7/Nl/OI"; dmarc=pass (policy=none) header.from=posteo.net; 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: 501064556B X-Spam-Score: -1.93 X-Migadu-Scanner: scn1.migadu.com X-TUID: 3JGsdTcohYb4 Ruijie Yu via "General discussions about Org-mode." writes: > When I call `(org-num-mode)' from lisp multiple times on a single > orgmode buffer, I get multiple numberings on each heading. > Subsequently, when I call `(org-num-mode -1)' or `(org-num--clear)', > only one layer of numberings are removed. > > This behavior is observed at the build below, but should still be > reproducible in current HEAD (4179d1205ed791254aa21fadf262623bc805595d). Thanks for reporting! Fixed on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=7f8e616f3b1fbe1c4f893c8ba94b13e908dcd8b7 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at