From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#31104: 26.1; Undo limits Date: Thu, 8 Aug 2019 14:26:47 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="190008"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 31104@debbugs.gnu.org, Nick Helm To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 08 14:28:10 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hvhWc-000nIk-2m for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Aug 2019 14:28:10 +0200 Original-Received: from localhost ([::1]:50004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvhWa-0000oR-Qu for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Aug 2019 08:28:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55320) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvhWW-0000oJ-7U for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2019 08:28:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hvhWU-0002fQ-UR for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2019 08:28:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59510) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hvhWU-0002fI-Kz for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2019 08:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hvhWU-0001Ff-FT for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2019 08:28:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Aug 2019 12:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31104 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 31104-submit@debbugs.gnu.org id=B31104.15652672264747 (code B ref 31104); Thu, 08 Aug 2019 12:28:02 +0000 Original-Received: (at 31104) by debbugs.gnu.org; 8 Aug 2019 12:27:06 +0000 Original-Received: from localhost ([127.0.0.1]:40098 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvhVZ-0001EV-Ly for submit@debbugs.gnu.org; Thu, 08 Aug 2019 08:27:05 -0400 Original-Received: from mail-pl1-f178.google.com ([209.85.214.178]:35896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvhVY-0001E1-A6 for 31104@debbugs.gnu.org; Thu, 08 Aug 2019 08:27:04 -0400 Original-Received: by mail-pl1-f178.google.com with SMTP id k8so43497506plt.3 for <31104@debbugs.gnu.org>; Thu, 08 Aug 2019 05:27:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=Vzkum6iBpZZGen7q07gjorLOk1wqNo7Heur/wfZB97g=; b=JewQ37687BQdjFQpefkG6n8M56poIxpN7F0QRTrgOb6/d9VdPLlYYA1gmizmNe7vdW 6ki5I3mpGH4lZa1Kzfb0mzAheZkyOd1BdZkHfP2t6DG63gvqZ9DJnBKfVQvLBzwq+Pqu FoIdNZkpt0+y2dOPu2WmcS1gED1dyDlPHVw6zPwkvesc2hMIK68xlsRkncuD5mMo0PC0 xhi2rMvYFLI20ldHszQKAzjBSd6nFFk7AdSlKxEJZR9AGL4qjimkGXN9lOvrZSstU7MQ J3uRAoRMiKgJUA/bWOBW9JNcRsZACOBCgk1/lbZfyRw4eo9gv7T1PrTnA8fys6XRVBi2 R3Fw== X-Gm-Message-State: APjAAAXbUN01SYtgCuFJAyZtq6FEhgOwEznP0HKpui4ZUFLS2C4l/Axj v4qfP76QLC9s1H6eggAfLpygCYbUTkr0ogu8JfM= X-Google-Smtp-Source: APXvYqy1GzzAGsvTMeSmCeN9Tlju4E6CZWz/d6k8MZinK5zhOKvyNTms1EmsvTP+kZyZQpK4nakvm03+NP+CaPshA+g= X-Received: by 2002:a17:902:d70a:: with SMTP id w10mr12715492ply.251.1565267218462; Thu, 08 Aug 2019 05:26:58 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:164759 Archived-At: Noam Postavsky writes: > tags 31104 + wontfix > quit > > Nick Helm writes: > >> I keep bumping into Emacs's undo limits. > >> I know I can change the undo-*-limit variables to improve this >> situation, but I don't think users should have to do this. >> >> Bit of further navel-gazing... >> >> Simply raising the default undo limits (or advising users to raise it in >> their config) has problems too. Given a large enough edit, I've had the >> same issue reappear. I find it difficult to work out how an undo limit >> set in bytes translates into real-world editing behaviour. >> >> Perhaps a byte size is not the best way to specify undo limits, at least >> not for user-facing settings? Instead, could Emacs guarantee a minimum >> number of undo steps, say the 20 most recent, regardless of the amount >> of data it consumes? > > I don't see how Emacs can do better here (except maybe we should > consider just bumping up the default limits so that users are less > likely to hit them), since a single command can take an arbitrary amount > of data, and there is only a finite amount of memory. The last change here was in: commit 2159bd065212117a6aff538a69d5ac1864dcd134 Author: Chong Yidong Date: Tue Jan 27 20:57:47 2009 +0000 (undo_limit, undo_strong_limit, Vundo_outer_limit): Quadruple undo limits (bug#1501). Since then, the current defaults are: undo-limit 80000 undo-strong-limit 120000 undo-outer-limit 12000000 Maybe it's time to quadruple (or double) these numbers again? Is there any reason not to do that for 27.1? Best regards, Stefan Kangas