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: Wed, 5 Jan 2022 01:30:51 -0800 Message-ID: References: <87v8yzsa22.fsf@miha-pc> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000ea2d5c05d4d2688b" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26406"; mail-complaints-to="usenet@ciao.gmane.io" To: jakanakaevangeli@chiru.no, 52980@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 05 10:31:23 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 1n52de-0006gq-Qa for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Jan 2022 10:31:23 +0100 Original-Received: from localhost ([::1]:47056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n52dd-0000Q8-D4 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Jan 2022 04:31:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n52dK-0000Or-OC for bug-gnu-emacs@gnu.org; Wed, 05 Jan 2022 04:31:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56264) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n52dK-0001L8-EF for bug-gnu-emacs@gnu.org; Wed, 05 Jan 2022 04:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n52dK-0007TO-9Y for bug-gnu-emacs@gnu.org; Wed, 05 Jan 2022 04:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Jan 2022 09:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52980 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 52980-submit@debbugs.gnu.org id=B52980.164137506028718 (code B ref 52980); Wed, 05 Jan 2022 09:31:02 +0000 Original-Received: (at 52980) by debbugs.gnu.org; 5 Jan 2022 09:31:00 +0000 Original-Received: from localhost ([127.0.0.1]:39577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n52dH-0007T7-I8 for submit@debbugs.gnu.org; Wed, 05 Jan 2022 04:31:00 -0500 Original-Received: from mail-pg1-f178.google.com ([209.85.215.178]:38706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n52dF-0007Sn-Q9 for 52980@debbugs.gnu.org; Wed, 05 Jan 2022 04:30:58 -0500 Original-Received: by mail-pg1-f178.google.com with SMTP id s1so33517361pga.5 for <52980@debbugs.gnu.org>; Wed, 05 Jan 2022 01:30:57 -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:mime-version:date :message-id:subject:to; bh=TTDWUJLM4gpa2YYSMbZPKnX4VO5BFAPRa+sKB0c9smU=; b=3GNZ3MfakLu3xwh5nS4045OnSWlodcrz7tf3K7k9m3jB9z9QEyqjegrjrJlN/zMDSv jf56IkH+lOzxn4gUA+9j1yCqm8jXHJe7eayuNUcG0NaOgNHpnNnr6NJoV8cOQKu/cXyW QC0NLVNDvKY5ImGbPf99mHugA1IGhhuyna60Kn3q6oAHlgM3K8xe/oOCdwplYyiuT3O1 btjCOLMJmLDiF+MORNdDX1Mkw/C3NAcC+619RolKA45RsOvIhbDbVm+Xkfzz9yL0Sbh5 MfaRdVgXNt5wOi5ltpWYr+/aR5sGXotOuD7UaqqtdCjmLDNJTKtViGSdQ0iW2hy3wane GkoQ== X-Gm-Message-State: AOAM531NiQiHNCxYzlaLTwflCYQf6Tbg2sexs3Q1+sHpjM5j4v/C/04e Yd2QcxJPG6GKWw+GoMHdcNfCXZAt7Y3dR9JUFOM= X-Google-Smtp-Source: ABdhPJyah719JyqX+9T7m5j5Wc5gd0harGgkSium00FfxEgGyYu3HMgknbqlrlu4tiHzV6udZ9/zS4zq8cGyElV7KBs= X-Received: by 2002:a63:2c11:: with SMTP id s17mr47082621pgs.435.1641375051943; Wed, 05 Jan 2022 01:30:51 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 5 Jan 2022 01:30:51 -0800 In-Reply-To: <87v8yzsa22.fsf@miha-pc> 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:223684 Archived-At: --000000000000ea2d5c05d4d2688b Content-Type: text/plain; charset="UTF-8" writes: >> + (if elide-head-mode >> + (progn >> + (elide-head--hide) >> + (add-hook 'before-revert-hook 'elide-head--delete-overlay nil 'local)) >> + (elide-head--show) >> + (remove-hook 'before-revert-hook 'elide-head--delete-overlay 'local))) > > Perhaps change-major-mode-hook would be more appropriate as suggested by > "(elisp) Creating Buffer-Local". That would make the minor mode clean up > its overlay if the user executes M-x normal-mode in addition to M-x > revert-buffer. I think you're right, thanks! Updated patch attached. --000000000000ea2d5c05d4d2688b Content-Type: text/x-diff; charset="US-ASCII"; name="0001-New-minor-mode-elide-head-mode.patch" Content-Disposition: attachment; filename="0001-New-minor-mode-elide-head-mode.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: c7d35a78816e7d1f_0.1 RnJvbSBkOGEyMTQ2MzQwNTk0NzQ2ZDUyYzY2ZmNjNDcyYTVkYzhlMjg0NDNhIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTdGVmYW4gS2FuZ2FzIDxzdGVmYW5AbWFyeGlzdC5zZT4KRGF0 ZTogVHVlLCA0IEphbiAyMDIyIDA4OjIxOjQ1ICswMTAwClN1YmplY3Q6IFtQQVRDSF0gTmV3IG1p bm9yIG1vZGUgZWxpZGUtaGVhZC1tb2RlCgoqIGxpc3AvZWxpZGUtaGVhZC5lbCAoZWxpZGUtaGVh ZC1tb2RlKTogTmV3IG1pbm9yIG1vZGUuICAoQnVnIzUyOTgwKQooZWxpZGUtaGVhZC0tZGVsZXRl LW92ZXJsYXksIGVsaWRlLWhlYWQtLXNob3cpCihlbGlkZS1oZWFkLS1oaWRlKTogTmV3IGZ1bmN0 aW9ucyBmYWN0b3JlZCBvdXQgZnJvbSAuLi4KKGVsaWRlLWhlYWQsIGVsaWRlLWhlYWQtc2hvdyk6 IC4uLiBoZXJlLiAgTWFrZSBvYnNvbGV0ZSBpbiBmYXZvcgpvZiBlbGlkZS1oZWFkLW1vZGUuCihl bGlkZS1oZWFkLWhlYWRlcnMtdG8taGlkZSk6IERvYyBmaXguCgoqIHRlc3QvbGlzcC9lbGlkZS1o ZWFkLXRlc3RzLmVsIChlcnQteCk6IFJlcXVpcmUuCihlbGlkZS1oZWFkLXRlc3RzLWVsaWRlLWhl YWQtbW9kZSkKKGVsaWRlLWhlYWQtdGVzdHMtZWxpZGUtaGVhZC1tb2RlL2VuYWJsZS1kaXNhYmxl KQooZW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Vyc2lvbiAiMjkuMSIpCiAKIChkZWZ2YXItbG9jYWwgZWxpZGUtaGVhZC1vdmVybGF5 IG5pbCkKIAorKGRlZnVuIGVsaWRlLWhlYWQtLWRlbGV0ZS1vdmVybGF5ICgpCisgICJEZWxldGUg dGhlIG92ZXJsYXkgaW4gYGVsaWRlLWhlYWQtb3ZlcmxheScuIgorICAod2hlbiAob3ZlcmxheXAg ZWxpZGUtaGVhZC1vdmVybGF5KQorICAgIChkZWxldGUtb3ZlcmxheSBlbGlkZS1oZWFkLW92ZXJs YXkpKSkKKworKGRlZnVuIGVsaWRlLWhlYWQtLWhpZGUgKCkKKyAgIkhpZGUgZWxpZGVkIChoaWRk ZW4pIGhlYWRlcnMuIgorICAoc2F2ZS1leGN1cnNpb24KKyAgICAoc2F2ZS1yZXN0cmljdGlvbgor ICAgICAgKGxldCAoKHJlc3QgZWxpZGUtaGVhZC1oZWFkZXJzLXRvLWhpZGUpCisgICAgICAgICAg ICBiZWcgZW5kKQorICAgICAgICAod2lkZW4pCisgICAgICAgIChnb3RvLWNoYXIgKHBvaW50LW1p bikpCisgICAgICAgICh3aGlsZSByZXN0CisgICAgICAgICAgKHNhdmUtZXhjdXJzaW9uCisgICAg ICAgICAgICAod2hlbiAocmUtc2VhcmNoLWZvcndhcmQgKGNhYXIgcmVzdCkgbmlsIHQpCisgICAg ICAgICAgICAgIChzZXRxIGJlZyAocG9pbnQpKQorICAgICAgICAgICAgICAod2hlbiAocmUtc2Vh cmNoLWZvcndhcmQgKGNkYXIgcmVzdCkgbmlsIHQpCisgICAgICAgICAgICAgICAgKHNldHEgZW5k IChwb2ludC1tYXJrZXIpCisgICAgICAgICAgICAgICAgICAgICAgcmVzdCBuaWwpKSkpCisgICAg ICAgICAgKGlmIHJlc3QgKHNldHEgcmVzdCAoY2RyIHJlc3QpKSkpCisgICAgICAgIChpZiAobm90 IChhbmQgYmVnIGVuZCkpCisgICAgICAgICAgICAoaWYgKGNhbGxlZC1pbnRlcmFjdGl2ZWx5LXAg J2ludGVyYWN0aXZlKQorICAgICAgICAgICAgICAgIChtZXNzYWdlICJObyBoZWFkZXIgZm91bmQi KSkKKyAgICAgICAgICAoZ290by1jaGFyIGJlZykKKyAgICAgICAgICAoZW5kLW9mLWxpbmUpCisg ICAgICAgICAgKGlmIChvdmVybGF5cCBlbGlkZS1oZWFkLW92ZXJsYXkpCisgICAgICAgICAgICAg IChtb3ZlLW92ZXJsYXkgZWxpZGUtaGVhZC1vdmVybGF5IChwb2ludC1tYXJrZXIpIGVuZCkKKyAg ICAgICAgICAgIChzZXRxIGVsaWRlLWhlYWQtb3ZlcmxheSAobWFrZS1vdmVybGF5IChwb2ludC1t YXJrZXIpIGVuZCkpKQorICAgICAgICAgIChvdmVybGF5LXB1dCBlbGlkZS1oZWFkLW92ZXJsYXkg J2ludmlzaWJsZSB0KQorICAgICAgICAgIChvdmVybGF5LXB1dCBlbGlkZS1oZWFkLW92ZXJsYXkg J2V2YXBvcmF0ZSB0KQorICAgICAgICAgIChvdmVybGF5LXB1dCBlbGlkZS1oZWFkLW92ZXJsYXkg J2FmdGVyLXN0cmluZyAiLi4uIikpKSkpKQorCisoZGVmdW4gZWxpZGUtaGVhZC0tc2hvdyAoKQor ICAiU2hvdyBlbGlkZWQgKGhpZGRlbikgaGVhZGVycy4iCisgIChpZiAoYW5kIChvdmVybGF5cCBl bGlkZS1oZWFkLW92ZXJsYXkpCisgICAgICAgICAgIChvdmVybGF5LWJ1ZmZlciBlbGlkZS1oZWFk LW92ZXJsYXkpKQorICAgICAgKGVsaWRlLWhlYWQtLWRlbGV0ZS1vdmVybGF5KQorICAgIChpZiAo Y2FsbGVkLWludGVyYWN0aXZlbHktcCAnaW50ZXJhY3RpdmUpCisgICAgICAgIChtZXNzYWdlICJO byBoZWFkZXIgaGlkZGVuIikpKSkKKworOzs7IyMjYXV0b2xvYWQKKyhkZWZpbmUtbWlub3ItbW9k ZSBlbGlkZS1oZWFkLW1vZGUKKyAgIlRvZ2dsZSBlbGl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CisgICAgICAgICAgICAg IChzZXQtYnVmZmVyIGJ1ZikKKyAgICAgICAgICAgICAgKGVsaWRlLWhlYWQtbW9kZSAxKQorICAg ICAgICAgICAgICAoc2hvdWxkICg9IDEgKGxlbmd0aCAob3ZlcmxheXMtaW4gKHBvaW50LW1pbikg KHBvaW50LW1heCkpKSkpCisgICAgICAgICAgICAgIChub3JtYWwtbW9kZSkKKyAgICAgICAgICAg ICAgKHNob3VsZCAoPSAwIChsZW5ndGggKG92ZXJsYXlzLWluIChwb2ludC1taW4pIChwb2ludC1t YXgpKSkpKSkKKyAgICAgICAgICAod2hlbiBidWYgKGtpbGwtYnVmZmVyIGJ1ZikpKSkpKSkKKwor KGVydC1kZWZ0ZXN0IGVsaWRlLWhlYWQtdGVzdHMtZWxpZGUtaGVhZC1tb2RlL3JldmVydC1idWZm ZXIgKCkKKyAgKGVydC13aXRoLXRlbXAtZmlsZSBmaWwKKyAgICAod2l0aC10ZW1wLWZpbGUgZmls CisgICAgICAoaW5zZXJ0ICJmb29cblNUQVJUXG5ISURERU5cbkVORFxuYmFyIikpCisgICAgKGxl dCAoKGVsaWRlLWhlYWQtaGVhZGVycy10by1oaWRlICcoKCJTVEFSVCIgLiAiRU5EIikpKQorICAg ICAgICAgIChidWYgKGZpbmQtZmlsZS1ub3NlbGVjdCBmaWwpKSkKKyAgICAgIChzYXZlLWV4Y3Vy c2lvbgorICAgICAgICAodW53aW5kLXByb3RlY3QKKyAgICAgICAgICAgIChwcm9nbgorICAgICAg ICAgICAgICAoc2V0LWJ1ZmZlciBidWYpCisgICAgICAgICAgICAgIChlbGlkZS1oZWFkLW1vZGUg MSkKKyAgICAgICAgICAgICAgKHNob3VsZCAoPSAxIChsZW5ndGggKG92ZXJsYXlzLWluIChwb2lu dC1taW4pIChwb2ludC1tYXgpKSkpKQorICAgICAgICAgICAgICAocmV2ZXJ0LWJ1ZmZlciBuaWwg dCkKKyAgICAgICAgICAgICAgKGVsaWRlLWhlYWQtbW9kZSAxKQorIC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LWhlYWQtdGVzdHMtZWxpZGUtaGVhZCAoKQorICAgIChsZXQgKChlbGlkZS1oZWFkLWhlYWRlcnMt dG8taGlkZSAnKCgiU1RBUlQiIC4gIkVORCIpKSkpCisgICAgICAod2l0aC10ZW1wLWJ1ZmZlcgor ICAgICAgICAoaW5zZXJ0ICJmb29cblNUQVJUXG5ISURERU5cbkVORFxuYmFyIikKKyAgICAgICAg KGVsaWRlLWhlYWQpCisgICAgICAgIChsZXQgKChvIChjYXIgKG92ZXJsYXlzLWF0IDE0KSkpKQor ICAgICAgICAgIChzaG91bGQgKD0gKG92ZXJsYXktc3RhcnQgbykgMTApKQorICAgICAgICAgIChz aG91bGQgKD0gKG92ZXJsYXktZW5kIG8pIDIxKSkKKyAgICAgICAgICAoc2hvdWxkIChvdmVybGF5 LWdldCBvICdpbnZpc2libGUpKQorICAgICAgICAgIChzaG91bGQgKG92ZXJsYXktZ2V0IG8gJ2V2 YXBvcmF0ZSkpKSkpKQorCisgIChlcnQtZGVmdGVzdCBlbGlkZS1oZWFkLXRlc3RzLWVsaWRlLWhl YWQtd2l0aC1wcmVmaXgtYXJnICgpCisgICAgKGxldCAoKGVsaWRlLWhlYWQtaGVhZGVycy10by1o aWRlICcoKCJTVEFSVCIgLiAiRU5EIikpKSkKKyAgICAgICh3aXRoLXRlbXAtYnVmZmVyCisgICAg ICAgIChpbnNlcnQgImZvb1xuU1RBUlRcbkhJRERFTlxuRU5EXG5iYXIiKQorICAgICAgICAoZWxp ZGUtaGVhZCkKKyAgICAgICAgKHNob3VsZCAob3ZlcmxheXMtYXQgMTQpKQorICAgICAgICAoZWxp ZGUtaGVhZCB0KQorICAgICAgICAoc2hvdWxkLW5vdCAob3ZlcmxheXMtYXQgMTQpKSkpKQorCisg IChlcnQtZGVmdGVzdCBlbGlkZS1oZWFkLXRlc3RzLXNob3cgKCkKKyAgICAobGV0ICgoZWxpZGUt aGVhZC1oZWFkZXJzLXRvLWhpZGUgJygoIlNUQVJUIiAuICJFTkQiKSkpKQorICAgICAgKHdpdGgt dGVtcC1idWZmZXIKKyAgICAgICAgKGluc2VydCAiZm9vXG5TVEFSVFxuSElEREVOXG5FTkRcbmJh ciIpCisgICAgICAgIChlbGlkZS1oZWFkKQorICAgICAgICAoc2hvdWxkIChvdmVybGF5cy1hdCAx NCkpCisgICAgICAgIChlbGlkZS1oZWFkLXNob3cpCisgICAgICAgIChzaG91bGQtbm90IChvdmVy bGF5cy1hdCAxNCkpKSkpKQorCiAocHJvdmlkZSAnZWxpZGUtaGVhZC10ZXN0cykKIDs7OyBlbGlk ZS1oZWFkLXRlc3RzLmVsIGVuZHMgaGVyZQotLSAKMi4zMC4yCgo= --000000000000ea2d5c05d4d2688b--