From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Unbalanced change hooks (part 2) [Documentation fix still remaining] Date: Tue, 30 Aug 2016 09:39:35 -0400 Message-ID: References: <83inv9hkjd.fsf@gnu.org> <83h9ashfgx.fsf@gnu.org> <831t1wharr.fsf@gnu.org> <20160810161821.GB3413@acm.fritz.box> <83wpjofttf.fsf@gnu.org> <20160810185735.GD3413@acm.fritz.box> <20160811112951.GA2154@acm.fritz.box> <87a8fue656.fsf@russet.org.uk> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1472564512 31553 195.159.176.226 (30 Aug 2016 13:41:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 30 Aug 2016 13:41:52 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 30 15:41:46 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bejIQ-0007Ys-4b for ged-emacs-devel@m.gmane.org; Tue, 30 Aug 2016 15:41:46 +0200 Original-Received: from localhost ([::1]:49255 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bejIN-0001vI-KB for ged-emacs-devel@m.gmane.org; Tue, 30 Aug 2016 09:41:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bejGc-0000k8-OS for emacs-devel@gnu.org; Tue, 30 Aug 2016 09:39:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bejGY-00080J-53 for emacs-devel@gnu.org; Tue, 30 Aug 2016 09:39:54 -0400 Original-Received: from [195.159.176.226] (port=49621 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bejGX-0007zt-UN for emacs-devel@gnu.org; Tue, 30 Aug 2016 09:39:50 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bejGQ-0004rK-00 for emacs-devel@gnu.org; Tue, 30 Aug 2016 15:39:41 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 14 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:+sDvZ5e/hhgmwj+xa/imrv3yYCA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:206930 Archived-At: > I think to really avoid the complexity for mode authors, b-c-f and a-c-f > need to not only balance, but also to be consistent. At the moment, they > are not that either -- they can signal different locations for a given > change. I think "balanced + a guarantee that a-c-f covers a subset of b-c-f" is sufficient, since you can then trivially extend a-c-f's subset to the corresponding "identical" locations if you need it. AFAIK we do have the "a-c-f covers a subset of b-c-f" property, right now (modulo bugs, of course). Stefan