From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: New hook before-region-change-functions wanted Date: Fri, 8 Sep 2017 15:12:14 +0000 Message-ID: <20170908151214.GB3463@ACM> References: <20170908144657.GA3463@ACM> <83d171xm3c.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1504883836 14675 195.159.176.226 (8 Sep 2017 15:17:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 8 Sep 2017 15:17:16 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 08 17:17:12 2017 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 1dqL1q-0003Z7-OY for ged-emacs-devel@m.gmane.org; Fri, 08 Sep 2017 17:17:10 +0200 Original-Received: from localhost ([::1]:45914 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqL1y-0006B8-01 for ged-emacs-devel@m.gmane.org; Fri, 08 Sep 2017 11:17:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqL1p-0006At-UW for emacs-devel@gnu.org; Fri, 08 Sep 2017 11:17:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqL1k-0008Br-96 for emacs-devel@gnu.org; Fri, 08 Sep 2017 11:17:09 -0400 Original-Received: from ocolin.muc.de ([193.149.48.4]:51544 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1dqL1j-0008AI-Ti for emacs-devel@gnu.org; Fri, 08 Sep 2017 11:17:04 -0400 Original-Received: (qmail 753 invoked by uid 3782); 8 Sep 2017 15:17:02 -0000 Original-Received: from acm.muc.de (p548C791B.dip0.t-ipconnect.de [84.140.121.27]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 08 Sep 2017 17:17:01 +0200 Original-Received: (qmail 4508 invoked by uid 1000); 8 Sep 2017 15:12:14 -0000 Content-Disposition: inline In-Reply-To: <83d171xm3c.fsf@gnu.org> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.4 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:218020 Archived-At: Hello, Eli. On Fri, Sep 08, 2017 at 18:10:31 +0300, Eli Zaretskii wrote: > > Date: Fri, 8 Sep 2017 14:46:57 +0000 > > From: Alan Mackenzie > > I would like to implement a new abnormal hook, > > before-change-region-functions. It would be called just before a change > > in the buffer's restriction (i.e., from widen and from narrow-to-region) > > and each function on it would take two parameters, the beginning and end > > of the new region being set. > If this hook will react to restriction, then > before-change-region-functions is not an appropriate name for it. > It's not the region you are changing. How about before-change-restriction-functions? -- Alan Mackenzie (Nuremberg, Germany).