From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] emacs-25 f785ff4: Clarify documentation of before/after-change-functions Date: Tue, 09 Aug 2016 21:18:17 +0300 Message-ID: <83k2fphkly.fsf@gnu.org> References: <20160809165416.24861.65995@vcs.savannah.gnu.org> <20160809165416.A7F9A220165@vcs.savannah.gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1470766785 26169 195.159.176.226 (9 Aug 2016 18:19:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 9 Aug 2016 18:19:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 09 20:19:41 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 1bXBco-0006f8-VA for ged-emacs-devel@m.gmane.org; Tue, 09 Aug 2016 20:19:39 +0200 Original-Received: from localhost ([::1]:37335 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXBcl-0005T9-SI for ged-emacs-devel@m.gmane.org; Tue, 09 Aug 2016 14:19:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXBc1-0004xv-4Z for emacs-devel@gnu.org; Tue, 09 Aug 2016 14:18:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXBbx-0007xe-Ss for emacs-devel@gnu.org; Tue, 09 Aug 2016 14:18:49 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54477) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXBbx-0007xR-PF; Tue, 09 Aug 2016 14:18:45 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2952 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bXBbt-00017l-UF; Tue, 09 Aug 2016 14:18:44 -0400 In-reply-to: (message from Stefan Monnier on Tue, 09 Aug 2016 13:59:25 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:206518 Archived-At: > From: Stefan Monnier > Cc: Eli Zaretskii > Date: Tue, 09 Aug 2016 13:59:25 -0400 > > > -This variable holds a list of functions to call before any buffer > > -modification. Each function gets two arguments, the beginning and end > > +This variable holds a list of functions to call before most buffer > > +modifications. Each function gets two arguments, the beginning and end > > This looks wrong. It should be called before *every* modification. > syntax-ppss relies on this property, for example. > And I can't think of any reason why we couldn't preserve that property. > > In which case is it not run? In some cases when we delete text. And a few special cases you can see in coding.c.