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: Detect all changes in a buffer Date: Fri, 15 Jul 2016 23:43:38 -0400 Message-ID: References: <87r3autxu0.fsf@red-bean.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1468640724 26942 80.91.229.3 (16 Jul 2016 03:45:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Jul 2016 03:45:24 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 16 05:45:15 2016 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 1bOGXT-0002Ux-BH for ged-emacs-devel@m.gmane.org; Sat, 16 Jul 2016 05:45:15 +0200 Original-Received: from localhost ([::1]:35825 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOGXS-0000dm-G0 for ged-emacs-devel@m.gmane.org; Fri, 15 Jul 2016 23:45:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOGXN-0000cH-Dm for emacs-devel@gnu.org; Fri, 15 Jul 2016 23:45:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bOGXJ-00066J-9C for emacs-devel@gnu.org; Fri, 15 Jul 2016 23:45:08 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:43913) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOGXJ-000665-2R for emacs-devel@gnu.org; Fri, 15 Jul 2016 23:45:05 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bOGXH-0002KH-DI for emacs-devel@gnu.org; Sat, 16 Jul 2016 05:45:03 +0200 Original-Received: from 69-165-156-121.dsl.teksavvy.com ([69.165.156.121]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Jul 2016 05:45:03 +0200 Original-Received: from monnier by 69-165-156-121.dsl.teksavvy.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Jul 2016 05:45:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 69-165-156-121.dsl.teksavvy.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:3Z/a4PhI/bsh3RhSkDk5TM39moo= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:205754 Archived-At: > There was some work on this in the past -- the effort I remember was based > on a collaboration protocol called "Obby", but now that I look at > https://www.emacswiki.org/emacs/CollaborativeEditing I see there were some > other efforts as well. GNU ELPA has Rudel which indeed supports the Obby protocol. > (You raise a good question about `inhibit-modification-hooks', and > I don't know the answer to it.) Making "real" modifications to the buffer while binding inhibit-modification-hooks to a non-nil value sounds like a bug. BTW, after-change-functions should work just as well for deletions as for insertions. Stefan