From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#30204: 27.0.50; Changing major mode resets non-default invisibility spec Date: Sat, 09 Oct 2021 12:55:54 +0200 Message-ID: <87bl3yv551.fsf@gmail.com> 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> <87lf34qxoq.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23086"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 30204@debbugs.gnu.org, p.stephani2@gmail.com, Richard Stallman To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 09 12:57:11 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 1mZA2R-0005kv-3g for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Oct 2021 12:57:11 +0200 Original-Received: from localhost ([::1]:41344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZA2P-0000Eo-Lv for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Oct 2021 06:57:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZA2I-0000Ef-Ue for bug-gnu-emacs@gnu.org; Sat, 09 Oct 2021 06:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40796) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mZA2I-00056a-MN for bug-gnu-emacs@gnu.org; Sat, 09 Oct 2021 06:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mZA2I-0005Ne-CH for bug-gnu-emacs@gnu.org; Sat, 09 Oct 2021 06:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Oct 2021 10:57:02 +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.163377696320613 (code B ref 30204); Sat, 09 Oct 2021 10:57:02 +0000 Original-Received: (at 30204) by debbugs.gnu.org; 9 Oct 2021 10:56:03 +0000 Original-Received: from localhost ([127.0.0.1]:52340 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZA1L-0005MO-CL for submit@debbugs.gnu.org; Sat, 09 Oct 2021 06:56:03 -0400 Original-Received: from mail-wr1-f45.google.com ([209.85.221.45]:41723) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZA1K-0005Ls-Ca for 30204@debbugs.gnu.org; Sat, 09 Oct 2021 06:56:02 -0400 Original-Received: by mail-wr1-f45.google.com with SMTP id t2so37646329wrb.8 for <30204@debbugs.gnu.org>; Sat, 09 Oct 2021 03:56:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version; bh=Ay+m1+Z4zHa2ZihjrYAZlnE+Yrup6ugTTkx+Ku/99lg=; b=lCYbt45Y2gIVmSqMYZt56zAl2UZ1SOdtaknLXs3W7S4x4WcXLPW8Nfl115n2Gi6amx OtnD1N5mKkF483fDfZNykueJW0VFwYgALpIQU94jwYD536Sp7gzWuLVmmZ+r7Y3peFwR sT9tvVdVmWNt+sc8oUrHklVf9GqSyOLJpyG5UeZ+FjfVlFt/fqQmLPTh149YAJ/LXvRc frkWqEHDGmJ3OBWqG+BJFaSQ7iwLrC7JS+s5r4LtTqG1eYBcalkjeBHMCHYggiloIsuq MgKFpvP4Ibp4iTykf5d+KNBIKYOIhkWBJsrXCGe/C9g+uXEmdWxHdcaAZH4FZNLitF/H SkAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version; bh=Ay+m1+Z4zHa2ZihjrYAZlnE+Yrup6ugTTkx+Ku/99lg=; b=xaxIdWphaE2PWxidMCtQdHC5DPt2o4tzYSBJo6MPGyuT/Nnq6cB98c46Lkjo90iHCL E/l+dGh6qJHbAR1ARkdkeZu/rxuuGoMQbpze+0glaJ4keIT3pWfmcMZ5t39fn0HDxy+e ZcR6m1HAFVpJHCagdoNwHFoJjH/FDPDsAHSOoBmtdRcIL7+iZa4KEycOCIYR97Qk93KW fYRwHfRirIckzRGAurO5IwOgH9dWH2b00giGH7pGNVSxw8RznvDUZJ9XM5Q57H2KUBg4 2yYxnO/Sj2KFv4IJg9VGDOxiHhjxm+HxS3XbdF3a1DhlBXF3lVhQv6XsiF4/SX+c9Wy9 AvzA== X-Gm-Message-State: AOAM532gVbXEQpTxUsuko6EB0JVCzFlwo1bp4rqF0Caaw89yU7KwiORY v6dGTbisxnPSCDzv/7yxU1+QPcQGKEg= X-Google-Smtp-Source: ABdhPJw5untg/MUcW0ssLZMLT63ramEZdG/HYBnIgn2q3m3QqO85AwzBT/skyNeDrZ/+WeCRRdlFWQ== X-Received: by 2002:a1c:f302:: with SMTP id q2mr9042182wmq.56.1633776956125; Sat, 09 Oct 2021 03:55:56 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id k17sm14013978wmj.0.2021.10.09.03.55.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Oct 2021 03:55:55 -0700 (PDT) In-Reply-To: <87lf34qxoq.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 08 Oct 2021 00:25:57 +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:216754 Archived-At: >>>>> On Fri, 08 Oct 2021 00:25:57 +0200, Lars Ingebrigtsen said: Lars> Richard Stallman writes: >> 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'. Lars> It's a mode -- it continues to remove text properties from text you yank Lars> into it. I see you did that with 'after-change-functions'. Would a 'pre-yank-hook' be a useful addition to Emacs? I often yank output from badly behaved programs, and having a buffer-local hook to replace non-breaking-spaces and the like before insertion would be useful. Robert --