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, 28 Jun 2015 20:46:26 -0400 Message-ID: References: <87fv746rd5.fsf@newcastle.ac.uk> <87y4kth5ps.fsf@newcastle.ac.uk> <87sib0a3jr.fsf@newcastle.ac.uk> <871tiiowjw.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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1435538805 10805 80.91.229.3 (29 Jun 2015 00:46:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Jun 2015 00:46:45 +0000 (UTC) Cc: Emacs-Devel devel To: phillip.lord@newcastle.ac.uk (Phillip Lord) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 29 02:46:37 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 1Z9NDY-0008Rj-Ic for ged-emacs-devel@m.gmane.org; Mon, 29 Jun 2015 02:46:36 +0200 Original-Received: from localhost ([::1]:40206 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9NDX-0002qc-Nx for ged-emacs-devel@m.gmane.org; Sun, 28 Jun 2015 20:46:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9NDT-0002qW-UJ for emacs-devel@gnu.org; Sun, 28 Jun 2015 20:46:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9NDQ-0002fq-Jg for emacs-devel@gnu.org; Sun, 28 Jun 2015 20:46:31 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:5186) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9NDQ-0002fa-F3 for emacs-devel@gnu.org; Sun, 28 Jun 2015 20:46:28 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AxFgA731xV/2cGNJ1cDoMChAKFVbtAh0sEAgKBPDsSAQEBAQEBAYEKQQWDXQEBAwFWIwULCzQSFBgNiFsIzyMBAQEBBgIBH4s6hQUHhC0FtQQjgzpaIoJ4AQEB X-IPAS-Result: A0AxFgA731xV/2cGNJ1cDoMChAKFVbtAh0sEAgKBPDsSAQEBAQEBAYEKQQWDXQEBAwFWIwULCzQSFBgNiFsIzyMBAQEBBgIBH4s6hQUHhC0FtQQjgzpaIoJ4AQEB X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="128740680" Original-Received: from 157-52-6-103.cpe.teksavvy.com (HELO pastel.home) ([157.52.6.103]) by ironport2-out.teksavvy.com with ESMTP; 28 Jun 2015 20:46:28 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id E17F5614BA; Sun, 28 Jun 2015 20:46:26 -0400 (EDT) In-Reply-To: <878ucaqm3g.fsf@newcastle.ac.uk> (Phillip Lord's message of "Wed, 27 May 2015 12:46:43 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:187632 Archived-At: > Actually, I have been thinking about this. What I worry about with this > is that we may be adding the same form of heuristic into undo.c as the > "insert an undo-boundary if the buffer has changed". Yes, because we do want this to happen, pretty much always (having changes accumulate without intervening boundary is actually a problem that can lead to nasty behaviors). There are exceptions, but they're rare. Stefan