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#51809: 29.0.50; [PATCH] Support for outline default state in Diff buffers Date: Sat, 05 Feb 2022 20:45:30 +0200 Organization: LINKOV.NET Message-ID: <86bkzli245.fsf@mail.linkov.net> References: <87lf1sw6ji.fsf@gmail.com> <86h7cgdk4v.fsf@mail.linkov.net> <87ee7kvshn.fsf@gmail.com> <87a6i7x5iq.fsf@gmail.com> <86k0hbam7r.fsf@mail.linkov.net> <878rxrmy7q.fsf@gmail.com> <86y256uc0v.fsf@mail.linkov.net> <87r1ajknsr.fsf@gmail.com> <86ilvu6w6k.fsf@mail.linkov.net> <871r2hc51a.fsf@gmail.com> <87r19zs662.fsf@gmail.com> <871r1zm7ji.fsf@gmail.com> <87wnjrkrwd.fsf@gmail.com> <86ilv8pnf3.fsf@mail.linkov.net> <87k0fouzxs.fsf@gmail.com> <86sftumahu.fsf@mail.linkov.net> <87pmouw9qr.fsf@gmail.com> <87a6fuvzj9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1566"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 51809@debbugs.gnu.org To: Matthias Meulien Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 05 19:49:36 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 1nGQ7s-0000HS-4r for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Feb 2022 19:49:36 +0100 Original-Received: from localhost ([::1]:59114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGQ7q-0001kE-PY for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Feb 2022 13:49:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59678) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGQ6a-0001iG-SX for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2022 13:48:20 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41686) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nGQ6L-0007Ol-VW for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2022 13:48:13 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nGQ6L-0004Io-Mc for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2022 13:48:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Feb 2022 18:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51809 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed patch Original-Received: via spool by 51809-submit@debbugs.gnu.org id=B51809.164408682716353 (code B ref 51809); Sat, 05 Feb 2022 18:48:01 +0000 Original-Received: (at 51809) by debbugs.gnu.org; 5 Feb 2022 18:47:07 +0000 Original-Received: from localhost ([127.0.0.1]:35583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGQ5T-0004Fh-Dg for submit@debbugs.gnu.org; Sat, 05 Feb 2022 13:47:07 -0500 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:34847) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGQ5Q-0004FB-SG for 51809@debbugs.gnu.org; Sat, 05 Feb 2022 13:47:06 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 7B8CF20002; Sat, 5 Feb 2022 18:46:52 +0000 (UTC) In-Reply-To: <87a6fuvzj9.fsf@gmail.com> (Matthias Meulien's message of "Mon, 17 Jan 2022 22:10:50 +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" Xref: news.gmane.io gmane.emacs.bugs:226086 Archived-At: --=-=-= Content-Type: text/plain > I see one problem: Once one has some default state configured for Diff > mode, it applies to patch embedded in Gnus Article buffers, but there > the outline-minor-mode keymap isn't active and there's no way to toggle > headings visibility... No idea how to improve this situation... Oh, I see now it's a real problem. Some patches are not displayed because their hunks are hidden. Fro example, a patch from bug#53770 attached below, becomes hidden with these settings: (add-hook 'diff-mode-hook (lambda () (setq-local outline-default-state 2) (outline-minor-mode 1))) For some unknown reason, outline--show-headings-up-to-level first hides all sublevels, but never shows them again, because or some level problem - it uses the level 21. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=woman.patch --- woman.el.orig 2022-02-04 14:08:54.188622150 +1100 +++ woman.el 2022-02-04 14:08:51.254677185 +1100 @@ -2299,9 +2299,9 @@ (replace-match woman-unpadded-space-string t t)) ;; Discard optional hyphen \%; concealed newlines \; - ;; point-size change function \sN,\s+N, \s-N: + ;; kerning \/, \,; point-size change function \sN,\s+N, \s-N: (goto-char from) - (while (re-search-forward "\\\\\\([%\n]\\|s[-+]?[0-9]+\\)" nil t) + (while (re-search-forward "\\\\\\([%\n/,]\\|s[-+]?[0-9]+\\)" nil t) (woman-delete-match 0)) ;; BEWARE: THIS SHOULD PROBABLY ALL BE DONE MUCH LATER!!!!! --=-=-=--