From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Samuel Wales Newsgroups: gmane.emacs.help Subject: Re: can undo unamalgamation be turned off reliably and completely? Date: Tue, 1 Dec 2020 21:52:54 -0700 Message-ID: References: <87k0u40w75.fsf@web.de> <877dq3ee39.fsf@web.de> <87r1oahk3h.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24415"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 02 05:53:37 2020 Return-path: Envelope-to: geh-help-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 1kkK92-0006Fv-W4 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Dec 2020 05:53:36 +0100 Original-Received: from localhost ([::1]:43180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkK92-0006k7-2J for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Dec 2020 23:53:36 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkK8Q-0006i5-Lf for help-gnu-emacs@gnu.org; Tue, 01 Dec 2020 23:52:58 -0500 Original-Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]:39155) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kkK8O-0007Kf-SV for help-gnu-emacs@gnu.org; Tue, 01 Dec 2020 23:52:58 -0500 Original-Received: by mail-pj1-x1029.google.com with SMTP id hk16so300035pjb.4 for ; Tue, 01 Dec 2020 20:52:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=O7yqEPo2Urpra2VkcgLYUv4tsj3WoTHI5V/tZYRBzGg=; b=o44AvfRq28nzoG0Gpne9HdaJNFVKCLnlfI37aaxSAGTaX7apEut/ku/yrvJOvyOZzM 96ZS9LUe2PgqQeS1Us3XkHTiIBstyS16uUlggYpe9oBL1vgT3KbsYHQ0GpCw+hZjMLrN w930DStZJp+544y7q4gOXO0XDU5YINBWk5vURhDP3SsH+vhcYxFaNLOVPXxGfxrTGWtP e9SDLMxnmW2TxF5pYkvI7cNm+wEXqmkouM77WM9SAOAs5EWnwkvAPFlTicDkoO0jzIUe gGUbZ9fGhA0SmPN9jwY1Saki7wHXoOjtXyBjlS9Vg/K7FwG7RgEcU3IFHqlrOgyz5nqo U3vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=O7yqEPo2Urpra2VkcgLYUv4tsj3WoTHI5V/tZYRBzGg=; b=EseoRcJ355bGDFXytzIGn0mBEGEOn/52B8asAxqIvQ5M+kBj9yAYCaN8/JdflaTzrX SqU7sUwiao9uToRMxEDug2315h1RWMFG979sZtQqVfeVxTG8u+BlBKSwEenWcUr1hBw+ z/gEWTD/Xii2a6j7iF2wj9t/TcSUCxaeHksOjZf9Wm61xStCG+qDO1ispinPTmua53bQ DSywneMZdDW33nqWSjoUCZzRMWryAK/uST+M/t0j3yj46wRa6J5os2AYxHDydMCAfUcu yhujxVJLt2C3fMg7LBpMoe9OWGjjrIkYtBYdaUsJdkHtu9mHYNHjYmBp4SD1AXJ3Vxke iurQ== X-Gm-Message-State: AOAM531Xji17xtSTM8xMMuSa98fZOqq1EnkdmoMaUHCOH/xtUm1kNDn8 HVrWkk9sEQV9cT236ZBxbP1vCiSRuhSQWwMuS9PT78/exEA= X-Google-Smtp-Source: ABdhPJy9c3t9gAoEINojDXwH6pkvLeNL4ywx7DTShoCaqgU6Pjes5V7kKhk9w0UfoHfRvxaOClKs4Q0mNo6rm9ZizHE= X-Received: by 2002:a17:90b:384c:: with SMTP id nl12mr697659pjb.72.1606884775278; Tue, 01 Dec 2020 20:52:55 -0800 (PST) Original-Received: by 2002:a05:6a10:d10f:0:0:0:0 with HTTP; Tue, 1 Dec 2020 20:52:54 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::1029; envelope-from=samologist@gmail.com; helo=mail-pj1-x1029.google.com 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, FREEMAIL_FROM=0.001, 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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:125822 Archived-At: um, i meant if non-nil. On 12/1/20, Samuel Wales wrote: > (setq undo-auto-current-boundary-timer t) does not work in my emacs 25 > to turn off amalgamating. > > however, i /might/ have thought of a solution. called-interactively-p > does not work reliably with defadvice, but this-command-keys might be > a substitute. then maybe i can advise all amalgamating commands, and > if nil, do undo-boundary. untested. > > and then when emacs 26 rolls around, i will try using (setq > amalgamating-undo-limit 1). which i presume will work. thank you for > all of your comments and, if any of you implemented turning off > amalgamation, for doing that too. > > > On 11/30/20, Michael Heerdegen wrote: >> Stefan Monnier writes: >> >>> > If you set this variable to, say, t, that should turn off this >>> > feature. >>> > Should exist in 25. May be named "undo-auto--current-boundary-timer" >>> > there. >>> >>> No, this part of undo was all hard coded in C in Emacs-25. >> >> I see the timer variable being introduced in Lisp with this commit: >> >> | 44dfa86b7d382b84564d68472da1448d08f48129 >> | Author: Phillip Lord >> | AuthorDate: Thu Aug 6 21:33:58 2015 +0100 >> | Commit: Phillip Lord >> | CommitDate: Thu Nov 12 21:06:05 2015 +0000 >> | >> | Parent: 0aec2aaccd * lisp/emacs-lisp/package.el: Simplify >> describe-package-1 >> | Contained: emacs-25 emacs-26 master >> | Follows: emacs-24.5-rc3-fixed (5481) >> | Precedes: emacs-25.0.90 (1955) >> | >> | The heuristic that Emacs uses to add an `undo-boundary' has been >> | reworked, as it interacts poorly with functions on `post-command-hook' >> | or `after-change-functions'. >> >> Am I interpreting the "Contained" and "Precedes" fields wrong? >> >>> It got rewritten in Elisp for Emacs-26, which indeed makes it possible >>> to >>> change it much more easily. >> >> How would you deactivate it in versions not yet having the rewrite? >> >> >> Thanks, >> >> Michael. >> >> >> > > > -- > The Kafka Pandemic > > Please learn what misopathy is. > https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html > -- The Kafka Pandemic Please learn what misopathy is. https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html