From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Major modes using `widen' is a good, even essential, programming practice. Date: Mon, 08 Aug 2022 14:41:57 +0300 Message-ID: <835yj3vu62.fsf@gnu.org> References: <6ae35c9306ade07b4c45@heytings.org> <6ae35c93060632b84285@heytings.org> <83bksvwje3.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23623"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gregory@heytings.org, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Aug 08 13:43:46 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oL1Ad-0005vA-U9 for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Aug 2022 13:43:44 +0200 Original-Received: from localhost ([::1]:39022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oL1Ac-0003Gf-MK for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Aug 2022 07:43:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oL199-0001lC-U2 for emacs-devel@gnu.org; Mon, 08 Aug 2022 07:42:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43490) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oL199-0005SN-DZ; Mon, 08 Aug 2022 07:42:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=rB3wCKgXnzwIxjuh8iv+Fgq0kRYbWRq1vpKS6FMBCPM=; b=lxBop5JTs4sh F0lxU++VcwWz3cf8fgXF1gOO9ASEDd0VB9i5yahZl94kyNQh7ZmtIwtlFLJ6DP+XNiQp8s5tUfCk0 Y/+U8c1JPgRdtGqujQj3nY5v7zhZ8lsxysgEUSh9JuLweCMd9cp6HESl4FbNQFNA7QXfEH8Y5bzLL 5Mgi2MquB7VA/YCaoM98/xXnN4QAPmM7uD56K8KefGioaavqKFg++somq6CpqQ16EdElCicgMoqEq Qy6QbYAEooSVxuuLH93SK0JQF5qpjHy0L+9cRbD/6ixD2uPjplbUmxAGV4sbvdP41ppHUOVoiOeNj hnX3XSCEVhCytCYBzHYytA==; Original-Received: from [87.69.77.57] (port=1969 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oL198-0005lg-RO; Mon, 08 Aug 2022 07:42:11 -0400 In-Reply-To: (message from Alan Mackenzie on Mon, 8 Aug 2022 10:33:17 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:293255 Archived-At: > Date: Mon, 8 Aug 2022 10:33:17 +0000 > Cc: gregory@heytings.org, emacs-devel@gnu.org > From: Alan Mackenzie > > On Mon, Aug 08, 2022 at 05:37:08 +0300, Eli Zaretskii wrote: > > > Date: Sun, 7 Aug 2022 20:46:17 +0000 > > > Cc: emacs-devel@gnu.org > > > From: Alan Mackenzie > > > > > Code executed through fontification-functions should do what it was > > > > designed to do, and only that, otherwise it breaks the API contract. > > > > Yet you are unable to state precisely what this "designed to do" is. > > > This "API contract" is a mythological creature. We've already > > > established, in conversation with Eli, that widening is routinely done > > > by functions on fontification-functions, and arbitrary buffer positions > > > are accessed. > > > Establishing that sad fact doesn't mean we agree with it. > > Death and taxes are sad facts too. Except that in this case, there's no external authority which imposes that.