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:51:05 -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="19111"; 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:52:15 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 1kkK7i-0004rP-VS for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Dec 2020 05:52:14 +0100 Original-Received: from localhost ([::1]:41974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkK7i-0005tf-1J for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Dec 2020 23:52:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkK6f-0005tX-OC for help-gnu-emacs@gnu.org; Tue, 01 Dec 2020 23:51:09 -0500 Original-Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]:56071) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kkK6e-0006Wi-5J for help-gnu-emacs@gnu.org; Tue, 01 Dec 2020 23:51:09 -0500 Original-Received: by mail-pj1-x1036.google.com with SMTP id r9so302473pjl.5 for ; Tue, 01 Dec 2020 20:51:07 -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=DAS8hM4rBjyV627t9B9kBFeSBASODeOlK/Tj53kXN6I=; b=mGntcCFgFKqGR4rTtntPTtqSAVGYW/xfLceYMM+DKcyCKUi3KbhOg7+rKPqxzEV5cm femL07M9rNgCUToYhdDd8bVN7J2wd+E/Di8nDakqm6rcqT+qFk9uzJOw4APWbXFzHunk j6Fcw6jcmg9WVnKYr0wAVPL0iXM6ODWM3I8BYT9fosX8+FQm0A4etP/0e4wbMRoT7X08 j1Kd1QXvW4tqkPo8/+aAAKngn/eaqnVsOLsU80y1vmg6DGQ8yYKdGqR5CS83lg3Mw6I2 uNImSoTXy5SLNfDSHNscsf3QXoy5J/krb5YiKww4fKXswqj9u4hxYJom/SG92/5j3ahn t1yg== 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=DAS8hM4rBjyV627t9B9kBFeSBASODeOlK/Tj53kXN6I=; b=V/pBAvdMJ6HeEwIKeV3TMephbASpDJ2MMfLSEtZ2/Tj57HzBf0XtzMXGLNxvI1eMgP dZ0lfrknPNBxoZ+T/qkKMd18xF1jmJYWPozDFCXL+v8/Yrp0WczDhdG2D3T6Ux8G/RBg Xv2MMHZHcF6ZfoQtRWhehGv0yhBjK7rsL+S9rmOfKb2ukXdBrLuasa67nMOWl5lI+kBA 8EfT+In+bOrLa8pTPOjKzQifLL/WVssMLHkrfeRoeqqopwyJObmKGANUnlNIpNV7s6/H 0u0mTK3R1Hd38yrn5UvFbMol4prYi/oq1vwPJZaY6AXebWceMLn9eYW1gaK/sZYLhHK0 4XLQ== X-Gm-Message-State: AOAM530zTHPsW1EMkAzMAGV8u5xtuA48OUzbwxkRfCBKAO73qyNapX5T P3AY7sLu1cz1pFHKZv6Jidja6TnYRTxxX/fc9Eg= X-Google-Smtp-Source: ABdhPJzWvMvYnJFOwU0K8xVwCWG1jxWYveZyTkqODIKCfH0cxbtrUJPy1etQpUAqS8Q5cD+r9a6p7LfBwI1iV2T8qk8= X-Received: by 2002:a17:90b:1888:: with SMTP id mn8mr711110pjb.158.1606884666365; Tue, 01 Dec 2020 20:51:06 -0800 (PST) Original-Received: by 2002:a05:6a10:d10f:0:0:0:0 with HTTP; Tue, 1 Dec 2020 20:51:05 -0800 (PST) In-Reply-To: <87r1oahk3h.fsf@web.de> Received-SPF: pass client-ip=2607:f8b0:4864:20::1036; envelope-from=samologist@gmail.com; helo=mail-pj1-x1036.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:125821 Archived-At: (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