From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Newsgroups: gmane.emacs.bugs Subject: bug#53981: 28.0.91; shortdoc: Add support for outline-minor-mode Date: Tue, 15 Feb 2022 08:32:07 +0100 Message-ID: <87sfsky494.fsf@gmail.com> References: <87czjpso5q.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28378"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Daniel Mendler , 53981@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 15 08:33:14 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 1nJsKm-00074w-I1 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Feb 2022 08:33:12 +0100 Original-Received: from localhost ([::1]:59698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nJsKk-0002dK-Tu for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Feb 2022 02:33:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJsKc-0002aA-Kh for bug-gnu-emacs@gnu.org; Tue, 15 Feb 2022 02:33:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49451) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nJsKc-0006H3-AV for bug-gnu-emacs@gnu.org; Tue, 15 Feb 2022 02:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nJsKc-0007tV-3E for bug-gnu-emacs@gnu.org; Tue, 15 Feb 2022 02:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Feb 2022 07:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53981 X-GNU-PR-Package: emacs Original-Received: via spool by 53981-submit@debbugs.gnu.org id=B53981.164491033730295 (code B ref 53981); Tue, 15 Feb 2022 07:33:02 +0000 Original-Received: (at 53981) by debbugs.gnu.org; 15 Feb 2022 07:32:17 +0000 Original-Received: from localhost ([127.0.0.1]:43348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJsJt-0007sZ-8J for submit@debbugs.gnu.org; Tue, 15 Feb 2022 02:32:17 -0500 Original-Received: from mail-wr1-f50.google.com ([209.85.221.50]:46874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJsJr-0007sL-1L for 53981@debbugs.gnu.org; Tue, 15 Feb 2022 02:32:15 -0500 Original-Received: by mail-wr1-f50.google.com with SMTP id q7so30415427wrc.13 for <53981@debbugs.gnu.org>; Mon, 14 Feb 2022 23:32:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=crFButzbiN0QVg33ojO7+OEcW/IqAuC2vhR/cPSVxdI=; b=R+BKwGZ0Tmdxbzw/PVb1X8O5S92B7Q0cagvLyAQyPSF6xN5gwRA2er5ZpRVTiUZR9O keyWzqEekEGA9gJJr0PboeKNgHeCYa6JSJCCBXFxWNxY7SNoAwZv0LUXxiu4yGgn+EuJ nDDaBMzna65ehAbLXKiJ6LIg6vLtrJ4nnTSfA1QkF0JHFHaqEvq72M19FMa8MFqoYpL7 A9ynpSzckhdHz69QWshn5mJaw7H3LTxfZls9lqYlk/WQFb6Fnq/wNQ7x9V/5hYE05vN1 q+Iw2720ikG/JK9SYg+MX2AZwtkHetXi6+UaKDsRZkGhyZZkdqbfSTS1cGpujggPCUD0 IIWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=crFButzbiN0QVg33ojO7+OEcW/IqAuC2vhR/cPSVxdI=; b=JgynUIXheukFpCHA21EhP/0XhX8EERViRVHP9y4R0L803WCWk4+1E5vvC+jlYSTEOq RXiB3K3julFEHWj0MwuH2kNbJMFXCJGAgHyREMenn1q+e0+ebx6bTtFokvNL6EUqahVQ TGHG5T/M8PJJVuu0BGeMZqENGtBb/XQIPwe5M5TMs9vxARNj2yQ0dTgV94+NfRhLa4/Y WkYf5wOArUPtdpVycgVEiHfR8aVzAd/Vfyi+HKg3BeDSJwmMdo1KfSbmfSOrl2Z3/eZu +ikJdSXpaTMsjJi78cP2kjIzZsIdoPoIPnBQJRUymKhvH0PzK+uyEuIs1yh2sIN5eS1S XeDQ== X-Gm-Message-State: AOAM532leTqFmcT4xS+atx8BBIumKvr8u0IAvZ3Wtt+hqElewvGKE1H5 nSDVSuBkD3SjOtsPo4MBGN1T4ofVajw= X-Google-Smtp-Source: ABdhPJwCVIxfU5omH+Uf6QPqAnBJtQkz+Ht7qIjrjU5o7ZcaYIGqQGD1nwmW034JPfI1PIZv00u52g== X-Received: by 2002:a5d:4e48:: with SMTP id r8mr2108555wrt.570.1644910328786; Mon, 14 Feb 2022 23:32:08 -0800 (PST) Original-Received: from amdahl30 ([2a01:e0a:253:fe0:2ef0:5dff:fed2:7b49]) by smtp.gmail.com with ESMTPSA id az7sm17497542wmb.14.2022.02.14.23.32.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 23:32:08 -0800 (PST) In-Reply-To: <87czjpso5q.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 14 Feb 2022 12:06:25 +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:226966 Archived-At: Lars Ingebrigtsen writes: > But then hiding levels made the display pretty weird: Looking at your screenshot, this reminds me of the discussion we're having on bug#52587? See in particular the three screenshots in <<87fsqnvl98.fsf@gmail.com>> I.e. given this outline buffer: The current folding causes this: Whereas it looks like this would be more useful: IOW, instead of eliding everything from the heading's end-of-line (included) to the section's last end-of-line (*excluded*, so its font-locking clashes with the heading line), we would like to elide everything *after* the heading's end-of-line (*including* the section's last end-of-line). I have not found the time to dig into outline.el to understand how this could be pulled off yet. FWIW though, issues such as the one we're seeing now with shortdoc comfort me in the idea that this is a fundamental problem with outline.el (although a mostly aesthetic one, granted). I'm also reminded of bug#51016, where we debated whether FORM FEEDs belonged in outline-regexp; I'm seeing a pattern with shortdoc's separator lines, and I wonder if outline.el should grow a concept of "section separators". That would allow us to stop conflating FORM FEEDs with level-1 headings, letting outline-forward-same-level do DTRT, yet keeping the ^L displayed even when folding all top-level headings, which IIRC was a contentious issue in that bug report