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: Mon, 29 Aug 2016 11:44:00 -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> <7e1478b6-cf00-fcbf-8c24-43bdaa57e2b6@dancol.org> <415d1cca-f32c-624e-a4be-9aadcf8a0f17@dancol.org> <8cea494d-33e0-0a7d-2bd0-c8bfb9f597aa@dancol.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1472485282 793 195.159.176.226 (29 Aug 2016 15:41:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 29 Aug 2016 15:41:22 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 29 17:41:18 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 1beOgW-00080G-LF for ged-emacs-devel@m.gmane.org; Mon, 29 Aug 2016 17:41:16 +0200 Original-Received: from localhost ([::1]:44156 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beOgU-0006cK-AS for ged-emacs-devel@m.gmane.org; Mon, 29 Aug 2016 11:41:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beOgO-0006cC-3W for emacs-devel@gnu.org; Mon, 29 Aug 2016 11:41:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1beOgK-00044e-Uk for emacs-devel@gnu.org; Mon, 29 Aug 2016 11:41:08 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:36500) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beOgK-00044I-Q5 for emacs-devel@gnu.org; Mon, 29 Aug 2016 11:41:04 -0400 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id u7TFevu9002100; Mon, 29 Aug 2016 11:40:58 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 6156366274; Mon, 29 Aug 2016 11:44:00 -0400 (EDT) In-Reply-To: <8cea494d-33e0-0a7d-2bd0-c8bfb9f597aa@dancol.org> (Daniel Colascione's message of "Mon, 29 Aug 2016 08:14:58 -0700") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5781=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5781> : inlines <5148> : streams <1691980> : uri <2277383> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:206877 Archived-At: >> I guess a way to "fix" it would be to add a random fudge factor to the >> b-c-f calls, plus add random dummy calls to b-c-f, and sprinkle the >> lisp/*.el code with combine-after-change-calls. This way, the "properly >> paired up" case will be much more exceptional. > You can't be serious. If it can finally get us rid of people who insist they want exactly paired/matched/symmetric b/a-c-f, then I'd willing to do that, yes. AFAICT the result would be simpler, cleaner, and more robust code, since instead of trying to think of the various different ways a buffer can change here or there, the coder would be forced to step back and think how to handle the general case. Stefan