From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#59888: [PATCH] Add 'grep-use-headings' Date: Thu, 15 Dec 2022 10:05:39 +0200 Organization: LINKOV.NET Message-ID: <867cytgk0k.fsf@mail.linkov.net> References: <87v8mndrla.fsf@gmail.com> <87ilime025.fsf@gmail.com> <86359pm55x.fsf@mail.linkov.net> <87o7scdb45.fsf_-_@gmail.com> <837cz0z7wj.fsf@gnu.org> <87k0301h16.fsf@gmail.com> <831qp8z5gp.fsf@gnu.org> <87sfhn3tui.fsf@gmail.com> <83wn6zui9n.fsf@gnu.org> <87ilii41p9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36407"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: Eli Zaretskii , stefankangas@gmail.com, 59888@debbugs.gnu.org To: Augusto Stoffel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 15 09:33:17 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 1p5jg5-0009Kl-Iu for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Dec 2022 09:33:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5jfv-0000ej-2x; Thu, 15 Dec 2022 03:33:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5jfr-0000dI-DZ for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 03:33:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p5jfq-0007Ri-HY for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 03:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5jfq-0008NE-DC for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 03:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Dec 2022 08:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59888 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 59888-submit@debbugs.gnu.org id=B59888.167109315732168 (code B ref 59888); Thu, 15 Dec 2022 08:33:02 +0000 Original-Received: (at 59888) by debbugs.gnu.org; 15 Dec 2022 08:32:37 +0000 Original-Received: from localhost ([127.0.0.1]:42490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5jfR-0008Mm-BX for submit@debbugs.gnu.org; Thu, 15 Dec 2022 03:32:37 -0500 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:38921) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5jfM-0008MR-1h for 59888@debbugs.gnu.org; Thu, 15 Dec 2022 03:32:34 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id A86671C0002; Thu, 15 Dec 2022 08:32:24 +0000 (UTC) In-Reply-To: <87ilii41p9.fsf@gmail.com> (Augusto Stoffel's message of "Sun, 11 Dec 2022 12:30:42 +0100") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:251035 Archived-At: > There is still an issue I'm aware of: if one saves a grep buffer to a > file and later opens the file, the headings are inserted a second time. > I've tried a bit to display the headings only using text display > properties (instead of inserting the actual text into the buffer), but > wasn't successful so far. Other, less elegant solutions are possible > (e.g. deleting all headings either when saving or when reading again the > file). This reminds a similar problem that the file etc/grep.txt can't be edited in grep-mode because then it will lose all grep-filtered escape sequences on saving.