From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#60467: 30.0.50; primitive-undo: Changes to be undone by function different from announced Date: Mon, 02 Jan 2023 09:31:56 +0000 Message-ID: <87h6x9mgdv.fsf@localhost> References: <87o7ri74qv.fsf@localhost> <9bc9c69ac20a37ded741@heytings.org> <9bc9c69ac282c0148962@heytings.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8984"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60467@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 02 10:32:20 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pCHB6-00028y-4z for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 02 Jan 2023 10:32:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pCHAt-0002dF-Lb; Mon, 02 Jan 2023 04:32:08 -0500 Original-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 1pCHAp-0002d2-NA for bug-gnu-emacs@gnu.org; Mon, 02 Jan 2023 04:32:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pCHAo-0006Nz-8o for bug-gnu-emacs@gnu.org; Mon, 02 Jan 2023 04:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pCHAo-0000Pa-4a for bug-gnu-emacs@gnu.org; Mon, 02 Jan 2023 04:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Jan 2023 09:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60467 X-GNU-PR-Package: emacs Original-Received: via spool by 60467-submit@debbugs.gnu.org id=B60467.16726519061555 (code B ref 60467); Mon, 02 Jan 2023 09:32:02 +0000 Original-Received: (at 60467) by debbugs.gnu.org; 2 Jan 2023 09:31:46 +0000 Original-Received: from localhost ([127.0.0.1]:42502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pCHAM-0000On-B7 for submit@debbugs.gnu.org; Mon, 02 Jan 2023 04:31:46 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:54865) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pCHAK-0000Oa-Ff for 60467@debbugs.gnu.org; Mon, 02 Jan 2023 04:31:33 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 92DBE24025B for <60467@debbugs.gnu.org>; Mon, 2 Jan 2023 10:31:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1672651886; bh=q79G1cAemAirtcY4ZRgOyhWaUyMkyQCzVdJePy0aFeg=; h=From:To:Cc:Subject:Date:From; b=nl7oy/41p92AK0f6Q300xMWzAYtCQAv2NSFmEvEDBomUEOy5+JrQQ4qfMv+USXzS9 yZ+wChcy34Ak6NGw1lxxperYXHPeEDHEEX9njIwMJho8Eov9eSuKS+edVtjAT+1lED eXLHf/FKfQW6FTi/7K+AyMmNWqG8mVrO+sLP+MraIWlilVO3aYTmlFoKv4Lr83BTgd Y/whNU7bPvzOZri+pD1dbRRkcznQI+Gm2S4q1bZThStsejHAdrInjN/80k6qTizs+w Tr1lFIKNH4iQS0B0NdeENxWW5gi0pVPt/FISHsLcW8IimEJLFhJHLUQ8sb/D7hX+LI lnGKqhI2JSzIA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NlrGP6Twzz6tmY; Mon, 2 Jan 2023 10:31:25 +0100 (CET) In-Reply-To: <9bc9c69ac282c0148962@heytings.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:252317 Archived-At: Gregory Heytings writes: > The (org-with-limited-levels (org-map-tree 'org-promote)) body in > org-promote-subtree, called inside a combine-change-calls, adds four > entries to buffer-undo-list: > > ("** " . 6) (9 . 11) > > which means that three characters have been removed and two have been > added in the buffer, which seems correct The actual function doing the work is (replace-match (apply #'propertize up-head (text-properties-at (match-beginning 0))) t) The match is "** " and the replacement is "* ". -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at