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: Lisp primitives and their calling of the change hooks Date: Wed, 10 Jan 2018 22:20:51 +0000 Message-ID: <20180110222051.GE6175@ACM> References: <20180107211055.GF22254@ACM> <837est81bl.fsf@gnu.org> <20180108192415.GA5531@ACM> <83h8rw6oio.fsf@gnu.org> <20180109195357.GA3869@ACM> <20180110184521.GB6175@ACM> <20180110194839.GC6175@ACM> <5f5a84de-b427-65db-21eb-737b60b2eec5@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1515623057 18524 195.159.176.226 (10 Jan 2018 22:24:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 10 Jan 2018 22:24:17 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: Eli Zaretskii , Stefan Monnier , emacs-devel@gnu.org To: =?iso-8859-1?Q?Cl=E9ment?= Pit-Claudel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 10 23:24:12 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 1eZOn4-0004Ms-BS for ged-emacs-devel@m.gmane.org; Wed, 10 Jan 2018 23:24:10 +0100 Original-Received: from localhost ([::1]:45200 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZOp4-0006J4-09 for ged-emacs-devel@m.gmane.org; Wed, 10 Jan 2018 17:26:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZOou-0006HL-E4 for emacs-devel@gnu.org; Wed, 10 Jan 2018 17:26:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZOop-0003Yw-UO for emacs-devel@gnu.org; Wed, 10 Jan 2018 17:26:04 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:63738 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1eZOop-0003XY-GC for emacs-devel@gnu.org; Wed, 10 Jan 2018 17:25:59 -0500 Original-Received: (qmail 8685 invoked by uid 3782); 10 Jan 2018 22:25:57 -0000 Original-Received: from acm.muc.de (p548C7214.dip0.t-ipconnect.de [84.140.114.20]) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 10 Jan 2018 23:25:57 +0100 Original-Received: (qmail 8761 invoked by uid 1000); 10 Jan 2018 22:20:51 -0000 Content-Disposition: inline In-Reply-To: <5f5a84de-b427-65db-21eb-737b60b2eec5@gmail.com> 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.1 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:221816 Archived-At: Hello, Clément. On Wed, Jan 10, 2018 at 17:06:57 -0500, Clément Pit-Claudel wrote: > On 2018-01-10 14:48, Alan Mackenzie wrote: > > At the moment, non-balancing b/a-c-f are used only in primitives which > > can't change the length of the buffer - things like > > translate-region-internal and upcase-region. > Sorry if I missed previous parts of the discussion that make the > following irrelevant: in a buffer containing "Straße" a call to > (buffer-size) returns 6, and a call to (buffer-size) after C-x h M-x > upcase-region returns 7 (because the text becomes STRASSE). Does this > contradict your assertion above? Does it matter? Yes, it does contradict my assertion, and it doesn't matter much, except to me, because it makes my arguments weaker. ;-( But I ought to have thought of that myself, seeing how often and how far I walk along the things in daily life. > (Additionally, and likely unrelatedly, the region boundaries after > running upcase-region on that example seem wrong — they don't include > the 'E'). That sounds like a bug indeed. But it's too late now for me to look at it at the moment. > Clément. -- Alan Mackenzie (Nuremberg, Germany).