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 13:15:26 +0200 Message-ID: <877demv48h.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> <87bl3yv551.fsf@gmail.com> <87lf32pi66.fsf@gnus.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="37244"; 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 13:16:33 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 1mZALA-0009Qo-I3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Oct 2021 13:16:32 +0200 Original-Received: from localhost ([::1]:44964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZAL8-0004XW-ET for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Oct 2021 07:16:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZAKh-0004XH-MT for bug-gnu-emacs@gnu.org; Sat, 09 Oct 2021 07:16:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40821) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mZAKf-0001Sj-UO for bug-gnu-emacs@gnu.org; Sat, 09 Oct 2021 07:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mZAKf-0000Xo-Qf for bug-gnu-emacs@gnu.org; Sat, 09 Oct 2021 07:16:01 -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 11:16: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.1633778137624 (code B ref 30204); Sat, 09 Oct 2021 11:16:01 +0000 Original-Received: (at 30204) by debbugs.gnu.org; 9 Oct 2021 11:15:37 +0000 Original-Received: from localhost ([127.0.0.1]:52366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZAKG-00009d-Mh for submit@debbugs.gnu.org; Sat, 09 Oct 2021 07:15:37 -0400 Original-Received: from mail-wr1-f51.google.com ([209.85.221.51]:34554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZAKE-0008Tl-Ju for 30204@debbugs.gnu.org; Sat, 09 Oct 2021 07:15:34 -0400 Original-Received: by mail-wr1-f51.google.com with SMTP id y3so4680257wrl.1 for <30204@debbugs.gnu.org>; Sat, 09 Oct 2021 04:15:34 -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:content-transfer-encoding; bh=YkCexXdZwN8NTcHrG567ag6yNN517SwMTY08gblfvFA=; b=NqijjcPUiqqkEdqIkLTJS3qiW/+4nJWg9jforVi9UnDddVHv95tFBJoi5lZdROYVBs hYC9yfG86oyvJjyg1TTxNG4UShOphkazxyOx6bctP87ybkFmB00gaJzbW/oXmxpx3zdF rOyOmZc2z32LTqHKd1GbOtn0uUPs0pxf46icvcn0NQNJ3hgYhOz2RY/b6b9Wz05JayuP z/7nNNE8koNdsZ0aI6CVCbbYT5JyeYOIuAMoat7EHR5+a5dhUM2h26RqTAuld8oJb/dn Uy0L5zbN12vJlO1MrKs4Ds+4TKKpIQflkO4ptLcKhVnddiJtR1DMpuc2auFwMlYnX0Uh DdLA== 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:content-transfer-encoding; bh=YkCexXdZwN8NTcHrG567ag6yNN517SwMTY08gblfvFA=; b=W5QXfMWI+wAx4ErGwxGTZXLqf+/jqvYL2+Tdhex03CFvPFFVBIihCX/ploZdZaaqSI cHll+GjmCTcRJgR0ByQdrzDD8xqurIXBLtZgv29oAtdp/3hEmysov2f6GzodH75J456/ UYev/E/l6C2rgxmikH3PlBBpNkAsnV+ejx2hhF+zCiBQkatmALP5K2cVp1NV5XCXPMc/ ArdJzinN/EiG55OX9z3qx3XctERAvEhJTNukmV0MTrqGATc4y/svCNiApsHIfiedqppO dVJlYp5FrzwkGzf3IeANKWdNyUbcsSbaEja1DmqwA9ZVDbM8v3Ju9FVepVVWuPFBJcA9 UydA== X-Gm-Message-State: AOAM530Lg18eJiYqs583P4p/OvgQ1sCq3ziltN6siW2vTj32N3XcIiJr RCRtIom1n0RpLy/atdP+9/NZ0CzZltA= X-Google-Smtp-Source: ABdhPJy7FhTIrKG7t598D+sukueitvysSJW4Ql5cy0CxPGSQiFZIVUJ/IoIsfNh0p+BiMEnSXFmmRQ== X-Received: by 2002:adf:97cd:: with SMTP id t13mr10534231wrb.312.1633778128475; Sat, 09 Oct 2021 04:15:28 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id z133sm15704078wmc.45.2021.10.09.04.15.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Oct 2021 04:15:28 -0700 (PDT) In-Reply-To: <87lf32pi66.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 09 Oct 2021 13:10: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:216756 Archived-At: >>>>> On Sat, 09 Oct 2021 13:10:57 +0200, Lars Ingebrigtsen said: Lars> Robert Pluim writes: >> 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 repla= ce >> non-breaking-spaces and the like before insertion would be useful. Lars> There's `filter-buffer-substring' to do it from the other side...= But I Lars> see now that I could just have set `yank-excluded-properties' to = t in Lars> this mode to get the same effect as the `after-change-functions'.= I'll Lars> adjust. Doesn=CA=BCt `filter-buffer-substring' only work if I=CA=BCm yanking from o= ne buffer to another? What if I=CA=BCm yanking the X selection? Robert --=20