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: Lisp primitives and their calling of the change hooks Date: Wed, 10 Jan 2018 14:30:12 -0500 Message-ID: References: <83bmi58sao.fsf@gnu.org> <20180107194845.GE22254@ACM> <838td98mqe.fsf@gnu.org> <20180107211055.GF22254@ACM> <837est81bl.fsf@gnu.org> <20180108192415.GA5531@ACM> <83h8rw6oio.fsf@gnu.org> <20180109195357.GA3869@ACM> <20180110184521.GB6175@ACM> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1515612294 23890 195.159.176.226 (10 Jan 2018 19:24:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 10 Jan 2018 19:24:54 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 10 20:24:50 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 1eZLzS-0005iQ-Kq for ged-emacs-devel@m.gmane.org; Wed, 10 Jan 2018 20:24:46 +0100 Original-Received: from localhost ([::1]:34176 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZM1S-0001jo-7C for ged-emacs-devel@m.gmane.org; Wed, 10 Jan 2018 14:26:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZM1G-0001iV-L6 for emacs-devel@gnu.org; Wed, 10 Jan 2018 14:26:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZM1C-0005wu-MS for emacs-devel@gnu.org; Wed, 10 Jan 2018 14:26:38 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:50113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZM1C-0005wF-CQ; Wed, 10 Jan 2018 14:26:34 -0500 Original-Received: from lechazo.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w0AJQX3d011279; Wed, 10 Jan 2018 14:26:33 -0500 Original-Received: by lechazo.home (Postfix, from userid 20848) id 076CA60085; Wed, 10 Jan 2018 14:30:13 -0500 (EST) In-Reply-To: <20180110184521.GB6175@ACM> (Alan Mackenzie's message of "Wed, 10 Jan 2018 18:45:22 +0000") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6197=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6197> : inlines <6303> : streams <1775678> : uri <2567408> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:221805 Archived-At: > It's debatable whether it's within the rules or not. The rules, which > we so carefully crafted a few days ago, say, in part; "The arguments to > `before-change-functions' will enclose a region in which the individual > changes are made, ...". There will never be any changes made in the > quasi-deleted region, so to leave it without a balanceing a-c-f call > could be construed as against the rules. If so we should clarify the rules to allow for it. `upcase-region` will call b-c-f before knowing whether any char will be upcased, and I think we do want to allow that kind of behavior. Stefan