From: Stefan Kangas <stefan@marxist.se>
To: 52980@debbugs.gnu.org
Subject: bug#52980: elide-head and revert-buffer interaction stops elide-head-show from working
Date: Mon, 3 Jan 2022 13:40:40 -0500 [thread overview]
Message-ID: <CADwFkmkPwSAbJqyWm1kjvPkXRFDB9yEjYKK6ixtpvsc8Qu2EJQ@mail.gmail.com> (raw)
In-Reply-To: <CADwFkm=k-7P_Grs40RNTxq0EPfRrU_WUMRpN8qcztv2=JdMATA@mail.gmail.com> (Stefan Kangas's message of "Mon, 3 Jan 2022 11:48:43 -0500")
Stefan Kangas <stefan@marxist.se> 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.
next prev parent reply other threads:[~2022-01-03 18:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-03 16:48 bug#52980: elide-head and revert-buffer interaction stops elide-head-show from working Stefan Kangas
2022-01-03 18:40 ` Stefan Kangas [this message]
2022-01-04 8:15 ` Stefan Kangas
2022-01-04 17:08 ` jakanakaevangeli
2022-01-05 9:30 ` Stefan Kangas
2022-01-09 10:13 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADwFkmkPwSAbJqyWm1kjvPkXRFDB9yEjYKK6ixtpvsc8Qu2EJQ@mail.gmail.com \
--to=stefan@marxist.se \
--cc=52980@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).