From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joseph Turner Newsgroups: gmane.emacs.devel Subject: Re: [IDEA] Add function clean-buffer Date: Fri, 08 Sep 2023 17:59:53 -0700 Message-ID: References: <87il8qx50p.fsf@breatheoutbreathe.in> <87ledm6i68.fsf@posteo.net> <87a5u0tmwd.fsf@breatheoutbreathe.in> <83cyyv342w.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7401"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, mail+gh@daniel-mendler.de To: rms@gnu.org, Richard Stallman , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Sep 09 08:05:47 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 1qer6I-0001gm-44 for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Sep 2023 08:05:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qer5y-00014F-PU; Sat, 09 Sep 2023 02:05:26 -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 1qemL1-0005OD-JZ for emacs-devel@gnu.org; Fri, 08 Sep 2023 21:00:40 -0400 Original-Received: from out-228.mta0.migadu.com ([91.218.175.228]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qemKx-0003HD-J1 for emacs-devel@gnu.org; Fri, 08 Sep 2023 21:00:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=breatheoutbreathe.in; s=key1; t=1694221227; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=x4uZfCtxj/Z+5BDWah4n65Ydp9mIczpNFXBxbM1ixQU=; b=Bf0l/LfcYidjrwDs8mc+qrogZi31o61TsNoX055rDt6y9NLJDMRpOsHWnZH9TbDidISo6Y RlGxbBDwJOGvaNt1nHjDeWkJSzeOXwbs4SP5YWBDHPsm2GARJEMq97RljeJtrpb6WsOUck tYGoBIBep1WUeDoyKyEcwTgtG7YUorI= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-Reply-To: X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=91.218.175.228; envelope-from=joseph@breatheoutbreathe.in; helo=out-228.mta0.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 09 Sep 2023 02:05:15 -0400 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:310383 Archived-At: On September 8, 2023 5:38:46 PM PDT, Richard Stallman wrot= e: >[[[ 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=2E ]]] > >Why make this command kill local variables? >Most buffer-local variables come from the major mode=2E >Is it really desirable to reliminate the major mode? > >Eliminating the major mode is what `fundamental-mode' does=2E >Text properties are usually related to the major mode, >often due to Font Lock mode=2E > >Should `fundamental-mode' eliminate text properties? Or perhaps only >some text properties? > >Should `clean-buffer' eliminate only the text properties and overlays >that do NOT come from the major mode? I'm also concerned that clean-buffer is too vague a function name, and so = the scope of its behavior is not clear=2E I can see that some programs may = want to "clean a buffer" by eliminating text properties and overlays but no= t killing local variables, whereas others may want to do all three and pote= ntially something else=2E At this point, I'm open to letting this patch go ignored=2E Thank you for considering this idea with me! Joseph