From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.devel Subject: Lost or corrupted `undo-tree' history Date: Wed, 8 Jan 2020 23:45:35 +0100 Message-ID: <1631cfa6-91e2-1fc9-85b8-fdb55a4aa765@Alexander.Shukaev.name> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="70847"; mail-complaints-to="usenet@blaine.gmane.org" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 08 23:48:38 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.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 1ipK7s-0006IP-TV for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jan 2020 23:48:33 +0100 Original-Received: from localhost ([::1]:50130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipK7q-0001dk-FT for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jan 2020 17:48:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50715) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipK59-0006w1-MU for emacs-devel@gnu.org; Wed, 08 Jan 2020 17:45:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipK57-00086U-Oa for emacs-devel@gnu.org; Wed, 08 Jan 2020 17:45:43 -0500 Original-Received: from relay10.mail.gandi.net ([217.70.178.230]:53219) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ipK57-000804-I6 for emacs-devel@gnu.org; Wed, 08 Jan 2020 17:45:41 -0500 Original-Received: from [192.168.0.110] (unknown [79.134.79.103]) (Authenticated sender: forum@alexander.shukaev.name) by relay10.mail.gandi.net (Postfix) with ESMTPSA id CAEDF240003 for ; Wed, 8 Jan 2020 22:45:37 +0000 (UTC) Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.70.178.230 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:244151 Archived-At: I'm sure some of you have already seen the new update to the `undo-tree' package which is supposed to fix the dreaded issue with either loss or corruption of undo history. However, for those who don't know there is a great blog post with exhaustive analysis of the issue and how it must (allegedly) be resolved now with the new release [1]. A good read for anyone and especially experienced Emacs developers or power users who can suggest some improvements to the analysis and/or solution(s). One point from my side about the corruption solution (which seems to not be set in stone yet as a final remedy, but rather a test release that would only show after some time whether the issue is truly gone), I believe the garbage collector can be temporarily disabled by simply wrapping the body of `undo-list-transfer-to-tree' into the following `let' form: (let ((gc-cons-threshold most-positive-fixnum)) ...) Thoughts? [1] http://www.dr-qubit.org/Lost_undo-tree_history.html