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.bugs Subject: bug#30204: 27.0.50; Changing major mode resets non-default invisibility spec Date: Thu, 07 Oct 2021 18:21:21 -0400 Message-ID: References: <87lf55cxvj.fsf@gnus.org> <97574057-8212-4812-93CF-0C2EC7EA8B39@gmail.com> <87ilzfo13i.fsf@gnus.org> <83wnnvtlgn.fsf@gnu.org> <87zgsrmk75.fsf@gnus.org> <87o8825snj.fsf@gnus.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="15285"; mail-complaints-to="usenet@ciao.gmane.io" Cc: p.stephani2@gmail.com, 30204@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 08 00:34:06 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1mYbxm-0003mE-2J for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Oct 2021 00:34:06 +0200 Original-Received: from localhost ([::1]:45874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYbxk-0004bc-Co for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Oct 2021 18:34:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYbm7-0000SG-Pt for bug-gnu-emacs@gnu.org; Thu, 07 Oct 2021 18:22:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37108) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYbm7-0003qi-2S for bug-gnu-emacs@gnu.org; Thu, 07 Oct 2021 18:22:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mYbm5-0001TV-Uu for bug-gnu-emacs@gnu.org; Thu, 07 Oct 2021 18:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Oct 2021 22:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30204 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 30204-submit@debbugs.gnu.org id=B30204.16336452905627 (code B ref 30204); Thu, 07 Oct 2021 22:22:01 +0000 Original-Received: (at 30204) by debbugs.gnu.org; 7 Oct 2021 22:21:30 +0000 Original-Received: from localhost ([127.0.0.1]:48654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYbla-0001Sh-5d for submit@debbugs.gnu.org; Thu, 07 Oct 2021 18:21:30 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYblX-0001SS-13 for 30204@debbugs.gnu.org; Thu, 07 Oct 2021 18:21:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50694) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYblR-0002Mr-Kp; Thu, 07 Oct 2021 18:21:21 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1mYblR-00076L-DP; Thu, 07 Oct 2021 18:21:21 -0400 In-Reply-To: <87o8825snj.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 06 Oct 2021 12:55:44 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:216691 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. ]]] > > Perhaps we should have a mode that even more fundamental than > > fundamental-mode, that does a real cleanup of the buffer (removes all > > text properties, overlays, etc), and just document that there are some > > artefacts that may remain otherwise when changing modes? > > > > We could call it... fundamentalist-mode. > I've now added this to Emacs 29 under the name `clean-mode'. I see the usefulness of a command to remove such things from the buffer, but I don't think it fits the Emacs concept of "mode". It changes the contents of the buffer. I suggest renaming it to something like `clean-buffer'. -- 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)