From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.devel Subject: Re: Unbalanced change hooks (part 2) [Documentation fix still remaining] Date: Wed, 31 Aug 2016 12:04:34 +0100 Message-ID: <871t156vy5.fsf@russet.org.uk> 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 1472641522 16417 195.159.176.226 (31 Aug 2016 11:05:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 31 Aug 2016 11:05:22 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 31 13:05:19 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 1bf3KY-0003pA-B8 for ged-emacs-devel@m.gmane.org; Wed, 31 Aug 2016 13:05:18 +0200 Original-Received: from localhost ([::1]:53490 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bf3KW-0005iq-1f for ged-emacs-devel@m.gmane.org; Wed, 31 Aug 2016 07:05:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bf3Jv-0005ik-FW for emacs-devel@gnu.org; Wed, 31 Aug 2016 07:04:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bf3Jr-0006cV-PN for emacs-devel@gnu.org; Wed, 31 Aug 2016 07:04:39 -0400 Original-Received: from cloud103.planethippo.com ([31.216.48.48]:55736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bf3Jr-0006cR-GZ for emacs-devel@gnu.org; Wed, 31 Aug 2016 07:04:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=russet.org.uk; s=default; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From; bh=gmSdjpjx84SFxlo1Bq+hoUjZ18ISeJvvgcwg6MzOrCc=; b=BygN41WQ2YEMYRLrx/gzPz+3uH Mm9H6dQZZxmTOcc9R8FnlWOjM0XdLz/tJDHFAom++SlwFsQdel+b/QMGRHxJV2EF+Cit5B6kiFh+o /NNvgWyXbJAbbMeNb0QJ54lpA+y5DScJra3LE1B6QxWRRUGm3em2hgXrGK4Ii0TaYw+Y9OjVwgUpr ub3XtAIo6Ky3C9UmPWR230YGxapdM76t/9gz505n1X611xaPJwTW62U7Oj/ZLGtKpwwCXEGv/F1JU Coj1a8Rps0iyhBKx8z1h3J94hdI4Nwk//spq2iLYQhXwJdIMpHviS5IDJY2o9RiUx0+BLc4CYJLnV nFsHemLQ==; Original-Received: from janus-nat-128-240-225-60.ncl.ac.uk ([128.240.225.60]:61876 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.86_1) (envelope-from ) id 1bf3Jq-000q4q-HG; Wed, 31 Aug 2016 12:04:34 +0100 In-Reply-To: (Stefan Monnier's message of "Tue, 30 Aug 2016 09:39:35 -0400") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud103.planethippo.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - russet.org.uk X-Get-Message-Sender-Via: cloud103.planethippo.com: authenticated_id: phillip.lord@russet.org.uk X-Authenticated-Sender: cloud103.planethippo.com: phillip.lord@russet.org.uk X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 31.216.48.48 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:207017 Archived-At: Stefan Monnier writes: >> 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). To my mind, it's not enough. Even if a-c-f could signal the minimal change AND the positions reported by b-c-f that would work for me. Phil