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#51016: 28.0.50; 'diff-font-lock-prettify' breaks display of outline headers Date: Sun, 19 Dec 2021 00:30:52 +0100 Message-ID: <87bl1dmqxf.fsf@gmail.com> References: <87bl44qz5o.fsf@gmail.com> <87ee773i9w.fsf@gmail.com> <87h7c2xcuh.fsf@gnus.org> <86r1b52xvp.fsf@mail.linkov.net> <86lf0l23u1.fsf@mail.linkov.net> <87y24lhzed.fsf@gnus.org> <86pmpw7d4b.fsf@mail.linkov.net> <83ilvofnju.fsf@gnu.org> <86fsqs4bi2.fsf@mail.linkov.net> <83ee6cfh5s.fsf@gnu.org> <87ee6cs1pu.fsf@gmail.com> <838rwjg2kd.fsf@gnu.org> <875yrnyai9.fsf@gmail.com> <83wnk3ekdj.fsf@gnu.org> <87ilvm2a74.fsf@gmail.com> <83fsqqctxd.fsf@gnu.org> <87r1aa1daa.fsf@gmail.com> <86lf0hx5yv.fsf@mail.linkov.net> <83o85dajha.fsf@gnu.org> <871r2966nd.fsf@gmail.com> <83ilvladfc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6976"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 51016@debbugs.gnu.org, larsi@gnus.org, orontee@gmail.com, juri@linkov.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 19 00:32:12 2021 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 1myjBU-0001fL-JS for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Dec 2021 00:32:12 +0100 Original-Received: from localhost ([::1]:39120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myjBT-0002f8-1X for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Dec 2021 18:32:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myjBK-0002cd-Nw for bug-gnu-emacs@gnu.org; Sat, 18 Dec 2021 18:32:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:32891) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1myjBK-0003Dh-Dr for bug-gnu-emacs@gnu.org; Sat, 18 Dec 2021 18:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1myjBK-0002bD-7l for bug-gnu-emacs@gnu.org; Sat, 18 Dec 2021 18:32: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: Sat, 18 Dec 2021 23:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51016 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 51016-submit@debbugs.gnu.org id=B51016.16398702759935 (code B ref 51016); Sat, 18 Dec 2021 23:32:02 +0000 Original-Received: (at 51016) by debbugs.gnu.org; 18 Dec 2021 23:31:15 +0000 Original-Received: from localhost ([127.0.0.1]:44436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myjAL-0002Zo-Th for submit@debbugs.gnu.org; Sat, 18 Dec 2021 18:31:15 -0500 Original-Received: from mail-wr1-f44.google.com ([209.85.221.44]:45965) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myjAK-0002ZU-BS for 51016@debbugs.gnu.org; Sat, 18 Dec 2021 18:31:01 -0500 Original-Received: by mail-wr1-f44.google.com with SMTP id v7so4383167wrv.12 for <51016@debbugs.gnu.org>; Sat, 18 Dec 2021 15:31:00 -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:content-transfer-encoding; bh=nCQLWGday8f7HW80G4gDG46TONFbrZSWv3KgGd9nDSA=; b=eJJsGlhr8xTDkmObJQQnqtvKg9KkSGaptxGhDUUn8oLB6xpSjnTYvK1FtX0Ie3ZqOn KP6+VIOK6oKhckAXFVLoq2s8OL6/Xbyam0JAK1ae9WdrAUSpkcg8Rjq67IrI77lDPWgq 4zNJUMirvJVVhkuXNGHAs7u1oo0QSmvhLCEfd4+ikiysVjfx/hYisPFPEXbmeekgJnZk 6nwW4BI9lEcNqS8Oldh4f8EiC7ETrXhhU0SsGikZo+/A2KbbRDK2CM9PtlnCvbYyJAGX ejFglr5u6iKWeu4qgnP+vwTxRdW971ufIv7j+eBsIa17YCH7NeetAfsyO5XBVbIRe2BG zg+g== 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:content-transfer-encoding; bh=nCQLWGday8f7HW80G4gDG46TONFbrZSWv3KgGd9nDSA=; b=BIa0p5x3K6LdSAUY9Ixm791uWGMYKVqasy/VuaIylth97LTEi01xvZ1JLnzVkg+ROb nwe/mj/Ya1VQJmkJwsDLfk+FihON8pvzw5HseM1JZqmbF71PkE3RrEChMlBCErUapQWc FeKbcNhy0dne3WEPgUzq5Vtbrv2PTWcNTbTkarNuLYaiRL1jbIrwFMX6GxQuVPzFT0Gx B/lF+41OrpFKALOjuKyWAQyTi5mINHukx0SidetsrzH6RmR38kYoZOG7Faw5PHTPzot/ kBhedCFmQTr87CMpzgKTVvh+2a5KHVKsZLKvPgZKeKHBg6n65B52mfocJnJi6lYKJ7EM lS+Q== X-Gm-Message-State: AOAM532cvjBtNl6CChoU+iw71hEi+dw+YuE4HKmdHw7jaDlw0N9hwZ35 p0vNsj59DRHuCPI4vFt7tns= X-Google-Smtp-Source: ABdhPJwlgugBV9TsUzP4RvDMPL3Xq9yzFcTaUtU28AFkVWFk/EViqgafDOUyOdn/LTXg7XkTWLTYbw== X-Received: by 2002:a5d:59af:: with SMTP id p15mr7580010wrr.314.1639870254138; Sat, 18 Dec 2021 15:30:54 -0800 (PST) Original-Received: from amdahl30 ([2a01:e0a:253:fe0:2ef0:5dff:fed2:7b49]) by smtp.gmail.com with ESMTPSA id g7sm11153840wrx.104.2021.12.18.15.30.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Dec 2021 15:30:53 -0800 (PST) In-Reply-To: <83ilvladfc.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 18 Dec 2021 22:03:19 +0200") 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:222627 Archived-At: Eli Zaretskii writes: >> From: K=C3=A9vin Le Gouguec >> Cc: Juri Linkov , 51016@debbugs.gnu.org, larsi@gnus.o= rg, >> orontee@gmail.com >> Date: Sat, 18 Dec 2021 20:43:18 +0100 >>=20 >> I guess the assumption Juri and I are working with (and maybe Lars too, >> since IIUC he added these buttons to act as visual cues to indicate >> places which can be expanded or collapsed) is that the purpose of >> outline-regexp is to capture "heading" lines, by which we mean titles >> and subtitles which define a hierarchy of things to show and hide. > > You are treating NEWS as if it were an Org document. It isn't. I don't see where Org enters the picture from my description? AFAICT this "assumption" I described is just paraphrasing outline-mode's docstring: > Set major mode for editing outlines with selective display. > Headings are lines which start with asterisks: one for major headings, > two for subheadings, etc. Lines not starting with asterisks are body lin= es. >=20 > Body text or subheadings under a heading can be made temporarily > invisible, or visible again. >> These form feeds do not contribute to the document's hierarchy. They do >> not have subsections to expand or collapse. Despite this, they are >> treated as level-1 headings. >>=20 >> That leads to what Juri and I consider "absurd" results: >>=20 >> - outline-forward-same-level pauses on them: why? There's nothing for >> a user to expand or collapse there; >>=20 >> - outline-minor-mode-use-buttons adds these clickable buttons: why? >> There's nothing for a user to expand or collapse there. > > These are _page_ delimiters. They are conceptually _above_ level-1 > headings. Right; unfortunately, in addition to this *conceptual* understanding of form feeds, *functionally* they are treated as level-1 headings, with the unfortunate consequences we highlighted. As you point out, they are page delimiters; if we were to take them out of outline-regexp, page commands (navigation, marking, narrowing) would keep working just fine!