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 05:37:08 +0300 Message-ID: <83bksvwje3.fsf@gnu.org> References: <6ae35c9306ade07b4c45@heytings.org> <6ae35c93060632b84285@heytings.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35369"; 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 04:38:16 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 1oKsel-00093a-Nf for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Aug 2022 04:38:15 +0200 Original-Received: from localhost ([::1]:45216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKsek-0002h8-Kl for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Aug 2022 22:38:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKsdu-0001Qq-RQ for emacs-devel@gnu.org; Sun, 07 Aug 2022 22:37:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36396) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKsdu-00075E-HN; Sun, 07 Aug 2022 22:37:22 -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=0M5VMPsYGgnVWMgUJBV+RVwMNW/l/SOoRGnyeX8x5Iw=; b=YB9RiVSZRU2R C+r3iIlAD+XQ6hpxejr1rTidrVMjfvo7C6ye/33sD90wV5YJcgLXnHn34ouGWEymZOxqxiZInsqA1 ka7Q7Q/TJLbpST1MsvLY3TBvO3ACHkhhR7nIEGGkIyl0oyjwRQJKs2IbUtdjAzpqwknVuvA8unImr p/34SUHjQfuWiGiybPvnBe426IioLewkr+CqXs4hDCkfM3rBaB4w8FkpCEf5xMUdU57XkXE7EzQUJ 0LonFwIiuOuOTR3P7VhYmxR3y4nFLjsrTeeA1h/mOmerILiKkz2rwCB2DQs4D6zb24yItMbqnbgiO sGHEWxtfaFN4BSAsbUBRgA==; Original-Received: from [87.69.77.57] (port=4579 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 1oKsdu-0007SN-1K; Sun, 07 Aug 2022 22:37:22 -0400 In-Reply-To: (message from Alan Mackenzie on Sun, 7 Aug 2022 20:46: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:293242 Archived-At: > 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.