From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: disabling undo boundaries Date: Sun, 09 Aug 2015 12:30:54 -0400 Message-ID: References: <87fv746rd5.fsf@newcastle.ac.uk> <87siaxk4dl.fsf@newcastle.ac.uk> <87iobsr6m2.fsf@newcastle.ac.uk> <87oalgaicm.fsf@newcastle.ac.uk> <87y4kkkzlo.fsf@newcastle.ac.uk> <87mw0zk7yp.fsf@newcastle.ac.uk> <87617mgp1b.fsf@newcastle.ac.uk> <871ti9ammc.fsf@newcastle.ac.uk> <878ucaqm3g.fsf@newcastle.ac.uk> <87y4hrm911.fsf@newcastle.ac.uk> <87wpx79pz6.fsf@newcastle.ac.uk> <87pp2wmpxy.fsf@russet.org.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1439137889 7645 80.91.229.3 (9 Aug 2015 16:31:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Aug 2015 16:31:29 +0000 (UTC) Cc: Emacs-Devel devel To: phillip.lord@russet.org.uk (Phillip Lord) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 09 18:31:22 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZOTVJ-0001wq-4S for ged-emacs-devel@m.gmane.org; Sun, 09 Aug 2015 18:31:21 +0200 Original-Received: from localhost ([::1]:55719 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOTVI-0001MM-Cq for ged-emacs-devel@m.gmane.org; Sun, 09 Aug 2015 12:31:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOTV4-0001KO-2f for emacs-devel@gnu.org; Sun, 09 Aug 2015 12:31:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOTUu-0007Yd-OH for emacs-devel@gnu.org; Sun, 09 Aug 2015 12:31:06 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:38271) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOTUu-0007VV-JV for emacs-devel@gnu.org; Sun, 09 Aug 2015 12:30:56 -0400 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.DIT.UMontreal.CA (8.14.1/8.14.1) with ESMTP id t79GV6NK018373; Sun, 9 Aug 2015 12:31:06 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 17AC0660E9; Sun, 9 Aug 2015 12:30:54 -0400 (EDT) In-Reply-To: <87pp2wmpxy.fsf@russet.org.uk> (Phillip Lord's message of "Sun, 09 Aug 2015 16:39:21 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5393=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5393> : inlines <3585> : streams <1485690> : uri <2009777> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:188650 Archived-At: > Will buffer-undo-list not be truncated by GC anyway? Truncation is only done at undo-boundaries. Hence the problem. > I'm struggling with understanding this also. I've tried tracing when the > code my patch removes actually runs and it is pretty rarely. When you're editing buffer FOO while some process is inserting data in buffer BAR. Or when your commands modify two buffers (e.g. in your case). > Also, adding boundaries in all modified buffers strikes me as fairly > stochastic. Not sure what you mean. > Assuming a well-behaved timer (i.e. one that releases > control with `sit-for'), Hmm? timers usually shouldn't call sit-for. Stefan