From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#10047: Looking for help debugging an undo issue Date: Thu, 01 Dec 2011 11:16:33 -0500 Message-ID: References: <4EC0F2F3.5000607@orcon.net.nz> <4ED36734.5060608@orcon.net.nz> <4ED78C52.4020603@orcon.net.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1322756223 26028 80.91.229.12 (1 Dec 2011 16:17:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 1 Dec 2011 16:17:03 +0000 (UTC) Cc: 10047@debbugs.gnu.org To: Phil Sainty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 01 17:16:58 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RW9Jh-0005lK-2Z for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Dec 2011 17:16:57 +0100 Original-Received: from localhost ([::1]:37104 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RW9Jg-0003JA-EF for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Dec 2011 11:16:56 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:47831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RW9Jd-0003EP-Fk for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2011 11:16:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RW9Jc-0001ub-8S for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2011 11:16:53 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RW9Jc-0001uP-6w for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2011 11:16:52 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RW9Jl-0004yM-HU for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2011 11:17:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Dec 2011 16:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10047 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10047-submit@debbugs.gnu.org id=B10047.132275620919091 (code B ref 10047); Thu, 01 Dec 2011 16:17:01 +0000 Original-Received: (at 10047) by debbugs.gnu.org; 1 Dec 2011 16:16:49 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RW9JX-0004xr-Tu for submit@debbugs.gnu.org; Thu, 01 Dec 2011 11:16:48 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RW9JU-0004xj-HO for 10047@debbugs.gnu.org; Thu, 01 Dec 2011 11:16:45 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EAC6o105Ld/3d/2dsb2JhbABEqniBBoFyAQEBAQIBAQJTIwULCw4mEhQUBA0kiBoIt3SLIASIKIoOkAKETw X-IronPort-AV: E=Sophos;i="4.71,279,1320642000"; d="scan'208";a="150388447" Original-Received: from 75-119-253-221.dsl.teksavvy.com (HELO ceviche.home) ([75.119.253.221]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 01 Dec 2011 11:16:34 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id B20BB660D4; Thu, 1 Dec 2011 11:16:33 -0500 (EST) In-Reply-To: <4ED78C52.4020603@orcon.net.nz> (Phil Sainty's message of "Fri, 02 Dec 2011 03:16:50 +1300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 01 Dec 2011 11:17:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:54553 Archived-At: > Thank you Stefan, that's very much appreciated. (Will I find that > code in the new 24.0.92 pretest, or do I need to build from version > control?) Yes, it should be in 24.0.92. >> - swap 4 and 5 (actually it was swapped in Emacs-22, so that would >> revert to the behavior of Emacs-21). > I see what you mean, and yet one presumes that change was made for > a reason. Is there any indication of why that change was made? Yes, it's because the truncation now does a few more things, one of which can resulting in prompting the user, and that can't be done where truncation used to take place (because it's a spot where the heap is in a special inconsistent state). So to swap things back, we'll need to split the "old plain truncation" which can be done late from the "new prompting truncation" which will have to stay where it is. > On a related note to all of this, I found what seems like a good > question, enquiring about how to determine safe/sensible values > for increasing the undo limits, but it never got an answer. It > would be nice to see that answered: > http://lists.gnu.org/archive/html/help-gnu-emacs/2011-02/msg00112.html There is no good answer: increasing those values will increase your memory use, which may be perfectly OK or not depending on your circumstance. The current default values have nothing magical to them, they're just choices which seemed reasonable at some point. We could probably increase them nowadays since memory resources have increased. Stefan