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) Date: Mon, 08 Aug 2016 15:56:24 -0400 Message-ID: References: <20160731121642.GB2205@acm.fritz.box> <20160802101549.GA2328@acm.fritz.box> <83r3a7md69.fsf@gnu.org> <20160802165545.GD2328@acm.fritz.box> <83fuqnm6og.fsf@gnu.org> <20160802190024.GE2328@acm.fritz.box> <83d1lrm0qu.fsf@gnu.org> <20160807211626.GA3690@acm.fritz.box> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1470686249 26201 195.159.176.226 (8 Aug 2016 19:57:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2016 19:57:29 +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 Mon Aug 08 21:57:25 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 1bWqft-0006gq-2C for ged-emacs-devel@m.gmane.org; Mon, 08 Aug 2016 21:57:25 +0200 Original-Received: from localhost ([::1]:59475 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWqfp-0002fF-OJ for ged-emacs-devel@m.gmane.org; Mon, 08 Aug 2016 15:57:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWqfC-0002bS-Fo for emacs-devel@gnu.org; Mon, 08 Aug 2016 15:56:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWqf8-0007TM-EA for emacs-devel@gnu.org; Mon, 08 Aug 2016 15:56:41 -0400 Original-Received: from [195.159.176.226] (port=33178 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWqf8-0007RX-7J for emacs-devel@gnu.org; Mon, 08 Aug 2016 15:56:38 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bWqf1-0005YO-Kw for emacs-devel@gnu.org; Mon, 08 Aug 2016 21:56:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 11 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:35KFXQ0NNLJYGkgWFH8+gU8ouDA= 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:206496 Archived-At: > If it is indeed the case, then a solution to the problem would be to > check that before- and after-c-f are called alternately. Any time > after-c-f is called twice in a row, we could reverse the change just made > (using the undo list), invoke before-c-f, redo the change, then let > after-c-f continue to completion. If necessary, we can temporarily Sounds like piling up workarounds to make up for a mistake in the underlying design. Stefan