From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#52980: elide-head and revert-buffer interaction stops elide-head-show from working Date: Mon, 3 Jan 2022 13:40:40 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24212"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: 52980@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 03 19:41:31 2022 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 1n4SGw-00068k-R9 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Jan 2022 19:41:30 +0100 Original-Received: from localhost ([::1]:56016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4SGv-0001W9-EC for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Jan 2022 13:41:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:32988) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4SGU-0001Un-Cu for bug-gnu-emacs@gnu.org; Mon, 03 Jan 2022 13:41:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52880) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n4SGU-0001td-3t for bug-gnu-emacs@gnu.org; Mon, 03 Jan 2022 13:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n4SGT-000481-S3 for bug-gnu-emacs@gnu.org; Mon, 03 Jan 2022 13:41:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Jan 2022 18:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52980 X-GNU-PR-Package: emacs Original-Received: via spool by 52980-submit@debbugs.gnu.org id=B52980.164123524915842 (code B ref 52980); Mon, 03 Jan 2022 18:41:01 +0000 Original-Received: (at 52980) by debbugs.gnu.org; 3 Jan 2022 18:40:49 +0000 Original-Received: from localhost ([127.0.0.1]:36193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4SGH-00047S-0p for submit@debbugs.gnu.org; Mon, 03 Jan 2022 13:40:49 -0500 Original-Received: from mail-pj1-f48.google.com ([209.85.216.48]:40459) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4SGE-00047E-Ja for 52980@debbugs.gnu.org; Mon, 03 Jan 2022 13:40:47 -0500 Original-Received: by mail-pj1-f48.google.com with SMTP id o63-20020a17090a0a4500b001b1c2db8145so38391638pjo.5 for <52980@debbugs.gnu.org>; Mon, 03 Jan 2022 10:40:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to; bh=aVAwWUv+lAZNZwI+vAYUOLXpBw8WfVNPocxqA73IWyE=; b=6+NSCvaVWttpYByfPdQc3kmsgVBcnu3chD8FxP3/Ow8fUg4G0+AiazoFItdy3lfdHy lpieT0CDHwnwTMlN6li1yZfGfPz4far2dgV2AaAhxPvpy8onQWodBS58pTEGd2Z3YEgF VgU3C9kZ3hi1oKFn6tPtloEgMUKNRNrT2YN8qvdFQlE7Ko7fwIVALWWU6+29lbEI88KV 6divlWY24PvUihTkZrca0ae4d1EUjZ2SUjj/DL222R06Gm1YqBf3XK7rtPcpoTZENbS9 IkJUk3jWm+eIK2EtAfqHfjJ0ZlFrqzfk7fsg0az/yHrEsxU7T7yA9DINQHeZd6NI+zC5 6ZlQ== X-Gm-Message-State: AOAM532I4gbRaQxCaVxfEB2iadaq4o1FgCjHl0UEHwp9D4RdNvBj3+ZA BhKjo0JoLIRwMtYnLFTJkKq5xU8YEew3xkQYwaPGXTkj X-Google-Smtp-Source: ABdhPJwItP71iZIxUVOvgh89uoXZKjLY5lYRU+7fm8ZiRCQgNmKxpUY5V9TzzpzMAl/PFcxjypr3/4S7R8rb4P63fVI= X-Received: by 2002:a17:90a:4482:: with SMTP id t2mr41451197pjg.133.1641235240706; Mon, 03 Jan 2022 10:40:40 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 3 Jan 2022 13:40:40 -0500 In-Reply-To: (Stefan Kangas's message of "Mon, 3 Jan 2022 11:48:43 -0500") 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:223597 Archived-At: Stefan Kangas writes: > 0. emacs -Q lisp/help.el > ;; Any file where the header would normally be elided > 1. M-x elide-head RET > 2. M-x revert-buffer RET > 3. M-: elide-head-overlay RET => nil > ;; Note that the overlay is still in the buffer though. > 4. M-x elide-head RET > ;; A second overlay is added. > 5. M-x elide-head-show RET > > Now I see no license, as only the second overlay is removed. I started looking into a solution with {before,after}-revert-hook, but that just seems duplicate what we would get from just using a minor mode. So I'm starting to think that `elide-head' and `elide-head-show' should be obsoleted in favor of a new local minor mode `elide-head-mode'. That would also save me from having to add a third command `elide-head-toggle' to toggle the hiding on or off.