From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#30204: 27.0.50; Changing major mode resets non-default invisibility spec Date: Mon, 22 Jan 2018 20:42:00 +0000 Message-ID: References: <83h8rdrio9.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403045e49fae657a20563637604" X-Trace: blaine.gmane.org 1516653683 11687 195.159.176.226 (22 Jan 2018 20:41:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 22 Jan 2018 20:41:23 +0000 (UTC) Cc: 30204@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 22 21:41:18 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1editw-00029B-3d for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jan 2018 21:41:08 +0100 Original-Received: from localhost ([::1]:36776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edivw-0001mZ-I7 for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jan 2018 15:43:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edivq-0001mC-0t for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 15:43:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edivm-0003WX-31 for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 15:43:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58902) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1edivl-0003WP-Vt for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 15:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1edivl-00076f-Q7 for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 15:43:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Jan 2018 20:43: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: Original-Received: via spool by 30204-submit@debbugs.gnu.org id=B30204.151665374027261 (code B ref 30204); Mon, 22 Jan 2018 20:43:01 +0000 Original-Received: (at 30204) by debbugs.gnu.org; 22 Jan 2018 20:42:20 +0000 Original-Received: from localhost ([127.0.0.1]:38566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ediv5-00075b-Mn for submit@debbugs.gnu.org; Mon, 22 Jan 2018 15:42:19 -0500 Original-Received: from mail-lf0-f46.google.com ([209.85.215.46]:42738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ediv3-00075O-Hj for 30204@debbugs.gnu.org; Mon, 22 Jan 2018 15:42:17 -0500 Original-Received: by mail-lf0-f46.google.com with SMTP id q17so12273703lfa.9 for <30204@debbugs.gnu.org>; Mon, 22 Jan 2018 12:42:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CnjXeGRkbVhxT7mc2nqkobOnmM5jnGL0w3/6dLVvgSw=; b=exYdLf3GsaRjqNM9X8IwwIgkkgyAE2xZ3cw+V/wXd4qe0oybxpEQ/ZrVWumAf2lVDr 9dhfVvDglBUwQefAyV2E/q4AHzCMV5XmjxK8XRbQRaSNNeQ82nr10LL1aDyIl5Iuw3jl 9krJAapPH7O9rjax7OOCU4HSn7FXqkBsA4gi5y011LgXwgzTWmox+Im8mRW8zvHkerJe QNcgMX10ZkJnVhd+nlMxuHxCWFt9VDFaZTiPIAPu7IHBtRiNKJ3SSZCk7Su5uHTAbr5o xPxeXP5dqbFJVcKe1mUlZsbDVrC/egUpbNe19hGCKhUrHpDeFan1Wt3UwRB5/gOjgrhf n9nA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CnjXeGRkbVhxT7mc2nqkobOnmM5jnGL0w3/6dLVvgSw=; b=I1fx525hJnEVSWXuOKTFIWbaRPkjXVvH+yxfMM1/C9FMbLMD4urhO9hDINEEmEoUCm rVJ1CBtpi8LlGxTtqo/PIgwGJRqraWjcUCu5ZNnqqCkVL3I3hxniBgsEN4e/gBjCytmE gpnq9JvDc1aje/3MLOyEPGc3OzmYuop1MsHktoS+jnzvUZ4Coper+gGheS1ZGLkFFPnb vWSeS+SnDO04SenD55kQNORYcnJW82OhLx0D6efaPO/qZ4dJ47sVgoEzFkqLFi7asNee HP2UQO3oNcYWjE+MgGKLRPhDudtTfXyZi4i5LgcO5n0Zb5O5eXwJL71+v4QGuGelHdNs lZVg== X-Gm-Message-State: AKwxyteZ7t3NUMAgUwKyS6lYFUDdev1v0eFlubqqsyGZvwB3KEYSywWL AxIA33felYbiAPA32a2GzQk5gZDCDweHhOWoBdw= X-Google-Smtp-Source: AH8x226LtYzD4t95LhWpiXwIcZZiYyST+xRltttqD4065B9gUmQPLCSGFyo+BRNU8HXWESMjASSUAeYaAKvuokh0d5Q= X-Received: by 10.25.93.83 with SMTP id p19mr45170lfj.113.1516653731270; Mon, 22 Jan 2018 12:42:11 -0800 (PST) In-Reply-To: <83h8rdrio9.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:142393 Archived-At: --f403045e49fae657a20563637604 Content-Type: text/plain; charset="UTF-8" Eli Zaretskii schrieb am Mo., 22. Jan. 2018 um 16:57 Uhr: > > From: Philipp Stephani > > Date: Mon, 22 Jan 2018 10:51:32 +0100 > > > > C-x b *foo* RET > > M-: (progn (add-to-invisibility-spec 'bar) (insert (propertize "foo" > 'invisible 'foo))) > > > > Now "foo" is visible, as it should be. > > > > M-x fundamental-mode => "foo" becomes invisible, because > > `kill-all-local-variables' has reset `buffer-invisibility-spec' to t. > > This can be confusing for modes that use conditional invisibility > > properties such as markdown-mode. > > Probably `kill-all-local-variables' shouldn't blindly reset > > `buffer-invisibility-spec', or maybe it should remove conditional > > invisibility properties. > > Why can't you make buffer-invisibility-spec be a permanent-local > variable in the cases where that is TRT? > > Hmm, yes, that sounds like a good idea. Let me try that. --f403045e49fae657a20563637604 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Eli Za= retskii <eliz@gnu.org> schrieb am= Mo., 22. Jan. 2018 um 16:57=C2=A0Uhr:
> From: Philipp Stephani <p.stephani2@gmail.com>
> Date: Mon, 22 Jan 2018 10:51:32 +0100
>
> C-x b *foo* RET
> M-: (progn (add-to-invisibility-spec 'bar) (insert (propertize &qu= ot;foo" 'invisible 'foo)))
>
> Now "foo" is visible, as it should be.
>
> M-x fundamental-mode =3D> "foo" becomes invisible, becaus= e
> `kill-all-local-variables' has reset `buffer-invisibility-spec'= ; to t.
> This can be confusing for modes that use conditional invisibility
> properties such as markdown-mode.
> Probably `kill-all-local-variables' shouldn't blindly reset > `buffer-invisibility-spec', or maybe it should remove conditional<= br> > invisibility properties.

Why can't you make buffer-invisibility-spec be a permanent-local
variable in the cases where that is TRT?


Hmm, yes, that sounds like a good idea= . Let me try that.=C2=A0
--f403045e49fae657a20563637604--