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: Lisp primitives and their calling of the change hooks Date: Sun, 07 Jan 2018 20:05:08 +0200 Message-ID: <83a7xp8rzf.fsf@gnu.org> References: <20180104211154.GC6846@ACM> <20180106151839.GB23284@ACM> <20180106202403.GD23284@ACM> <20180107113628.GA22254@ACM> <83o9m599du.fsf@gnu.org> <20180107120859.GB22254@ACM> <20180107135629.GC22254@ACM> <83mv1p8vki.fsf@gnu.org> <20180107175418.GD22254@ACM> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1515348250 21399 195.159.176.226 (7 Jan 2018 18:04:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 7 Jan 2018 18:04:10 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 07 19:04:05 2018 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 1eYFIh-00056X-9x for ged-emacs-devel@m.gmane.org; Sun, 07 Jan 2018 19:04:03 +0100 Original-Received: from localhost ([::1]:32897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYFKg-0005YM-PJ for ged-emacs-devel@m.gmane.org; Sun, 07 Jan 2018 13:06:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYFK2-0005Xz-EB for emacs-devel@gnu.org; Sun, 07 Jan 2018 13:05:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYFJz-0001WD-7B for emacs-devel@gnu.org; Sun, 07 Jan 2018 13:05:26 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYFJz-0001W3-21; Sun, 07 Jan 2018 13:05:23 -0500 Original-Received: from [176.228.60.248] (port=1732 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eYFJy-0006uk-Ie; Sun, 07 Jan 2018 13:05:22 -0500 In-reply-to: <20180107175418.GD22254@ACM> (message from Alan Mackenzie on Sun, 7 Jan 2018 17:54:18 +0000) 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:221684 Archived-At: > Date: Sun, 7 Jan 2018 17:54:18 +0000 > Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org > From: Alan Mackenzie > > One way of doing it would be to have a balanced pair of b/a-c-f for each > chunk of text inserted. The other way would be having a single b/a-c-f > pair. > > For reasons I can't articulate, I think the single pair of hooks would be > better; less "noisy", perhaps. But either strategy would work well. I like the single pair alternative better, also because no other caller of insert_from_gap calls the hooks before and after that call. It's too low-level an action to bother users with it.