From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: [IDEA] Add function clean-buffer Date: Mon, 11 Sep 2023 20:29:52 -0400 Message-ID: References: <87il8qx50p.fsf@breatheoutbreathe.in> <87ledm6i68.fsf@posteo.net> <87a5u0tmwd.fsf@breatheoutbreathe.in> <83cyyv342w.fsf@gnu.org> <83o7ibvnj9.fsf@gnu.org> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13171"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eliz@gnu.org, joseph@breatheoutbreathe.in, emacs-devel@gnu.org, mail+gh@daniel-mendler.de To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 12 02:30:22 2023 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 1qfrIM-0003EX-6T for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Sep 2023 02:30:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfrHw-0004Yx-Ry; Mon, 11 Sep 2023 20:29:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qfrHv-0004W9-Dr for emacs-devel@gnu.org; Mon, 11 Sep 2023 20:29:55 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qfrHt-0002x7-PC; Mon, 11 Sep 2023 20:29:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=3Wh9cEd6s3MERBtIxeWe2cLbEYRM6m1Nh0yJfRjVq1w=; b=VQvCrjgMULG+ Vcv7b1qlWp4GasdZpTBgEqK8kWyMklVSyQaabVQNLoGNr9AJ6ccfs6ubgUweiO28DlnLNXGWB5tsp cyhS+MROW9Wjr/KEhoGStT1qmlPtapO14sT2uwJjGxGGXpjDIfseCOhQwmQMTeq8+TkKxlJ5aGrYw 2H/WQX/OV2OkUOgmgMiwzUT3k7hL9aJSiApeFp8R1KmfjO5DW1wECEEk0ry/16RogXb8CPTFr698x gj8z6WI2OQkaZ/DaHveSnrzSSmArmvzr9FIu2LZfvXg7riGH08sip15e9eG0vKO6vPzA7RFB2DKi+ 8StaEG6xCNwlWBG6UJEPfQ==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qfrHs-0005St-Ss; Mon, 11 Sep 2023 20:29:52 -0400 In-Reply-To: (message from Stefan Kangas on Sun, 10 Sep 2023 01:19:35 -0700) 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:310491 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > Should `clean-buffer' eliminate only the text properties and overlays > > that do NOT come from the major mode? > How could one know where they "come from"? We can set up a way for major modes to declare which properties they create and manipulate -- if we want to have that information. I am not sure we do. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)