From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#60467: 30.0.50; primitive-undo: Changes to be undone by function different from announced Date: Wed, 04 Jan 2023 14:39:40 +0000 Message-ID: References: <87o7ri74qv.fsf@localhost> <9bc9c69ac20a37ded741@heytings.org> <9bc9c69ac282c0148962@heytings.org> <87h6x9mgdv.fsf@localhost> <838rij23by.fsf@gnu.org> <83zgazznau.fsf@gnu.org> <83mt6yz7se.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39716"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60467@debbugs.gnu.org, acm@muc.de, yantar92@posteo.net, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 04 15:40:06 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 1pD4w2-000A4f-ME for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Jan 2023 15:40:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pD4w0-00032y-Tf; Wed, 04 Jan 2023 09:40:04 -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 1pD4vz-00031F-NI for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2023 09:40:03 -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 1pD4vz-0001KF-Aw for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2023 09:40:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pD4vz-0005h8-02 for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2023 09:40:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Jan 2023 14:40: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.167284318421842 (code B ref 60467); Wed, 04 Jan 2023 14:40:02 +0000 Original-Received: (at 60467) by debbugs.gnu.org; 4 Jan 2023 14:39:44 +0000 Original-Received: from localhost ([127.0.0.1]:48028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pD4vf-0005gD-Mv for submit@debbugs.gnu.org; Wed, 04 Jan 2023 09:39:43 -0500 Original-Received: from heytings.org ([95.142.160.155]:58556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pD4ve-0005g4-0j for 60467@debbugs.gnu.org; Wed, 04 Jan 2023 09:39:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1672843181; bh=9zhAlohGDHiu2cwUzXecN2jdzEo+5TMv/R/rkQuiGNA=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=Af8OXwxwpNedyF4wnjDrBJKZucUXLC/z7S+79+slQSLe+u2K7NbIbRhFkA1JraoJP /2OJ/K9ER1zOFSxpwQYaha4DDT8PlqHv8rnaWrEuSoIuUimYZeqUQ2/MKKAhJVDFvM nWxeD5fFq1My0ydn4f/8cypjaphTTnGX+6kBTIVhk0p6IpQe4RnyUZnsxnG1om80Xp 5dwxjzwwmpCOpcNGM0euXSkrpBgz/36L2lSd9qfmG2Tlg9E+U5v1OKRkSVIIf65zAM sfPlaeLYOKfQtRhnH2+eP4rZZpiCoyNwqet3kke0oQbXKKf2NdWKSk8vaiPoOmPMSQ Y44S77OYhfYGA== In-Reply-To: <83mt6yz7se.fsf@gnu.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:252481 Archived-At: >>> For the loop currently in `subr.el` I think the (cdr ptr) is OK >>> because we use the `setcdr` to truncate the list, so that last cons >>> (whose `cdr` may be nil) will be in the list included in the (apply >>> ....) entry. >> >> Indeed, now I see it, and I think (without being 100% sure) that it's >> OK. It's yet another obscure point of the original code, though. > > I hope all these revelations will find their way into comments to this > tricky code. > Well, I hope this tricky code will be replaced by the non-tricky code I proposed, in which none of these obscurities exist... ;-)