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: Sat, 18 Dec 2021 20:43:18 +0100 Message-ID: <871r2966nd.fsf@gmail.com> References: <87bl44qz5o.fsf@gmail.com> <87mtlx2y3b.fsf@gmail.com> <87ilwj3knx.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22500"; 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 To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 18 20:58: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 1myfqO-0005fT-27 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Dec 2021 20:58:12 +0100 Original-Received: from localhost ([::1]:51854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myfqM-000238-Hm for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Dec 2021 14:58:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38940) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myfcp-0002fd-9B for bug-gnu-emacs@gnu.org; Sat, 18 Dec 2021 14:44:14 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60550) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1myfcg-00045j-AO for bug-gnu-emacs@gnu.org; Sat, 18 Dec 2021 14:44:08 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1myfcf-0000cd-QL for bug-gnu-emacs@gnu.org; Sat, 18 Dec 2021 14:44:01 -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 19:44:01 +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.16398566062343 (code B ref 51016); Sat, 18 Dec 2021 19:44:01 +0000 Original-Received: (at 51016) by debbugs.gnu.org; 18 Dec 2021 19:43:26 +0000 Original-Received: from localhost ([127.0.0.1]:43863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myfc6-0000bi-Hy for submit@debbugs.gnu.org; Sat, 18 Dec 2021 14:43:26 -0500 Original-Received: from mail-wr1-f41.google.com ([209.85.221.41]:44840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myfc5-0000bX-BZ for 51016@debbugs.gnu.org; Sat, 18 Dec 2021 14:43:26 -0500 Original-Received: by mail-wr1-f41.google.com with SMTP id t18so10891565wrg.11 for <51016@debbugs.gnu.org>; Sat, 18 Dec 2021 11:43:25 -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=SddaYg2fIC1ZDeMdTus+HtBl1BXKxE2I7OOn6TO9iNE=; b=YI5fCYyfJfvLTGIwovlLgmfA2/QUZkwB5+ssOEwrajvVOP0CSIkthY+SaN3mHVq2W8 oh43xa2RGd672VoeS+CeFG/2Ks/Qg0gwwdHOQmrczcB1mc++Llnknyh7mklKCUXBxlnE RHKPQJCCbd9pJrwUizRfMUSPFjPF6lgtFDD+Kk4KHVrVkCRVVTIQERafA3lAWmQIsQ9a EDXNdaeu4AiMjeoaBuEEfjsn29uBnFbyqyVbNifQ6xY3JwRSFz/T2xQQdWJD/KfKvqKN zAkxKN+VcmDQnYKj4RomkVTBNRWg5RJLa3dQinqQq7OdoeELFOCG8tnWpPFpjGJj0Gev pckQ== 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=SddaYg2fIC1ZDeMdTus+HtBl1BXKxE2I7OOn6TO9iNE=; b=Ln7WrOuPs11wGERfcOBMnM/IsH27dMs0aoUit8tbMI2nV0DSj7Mt6ogECJc5LCc13v 2+OIo1T+RO7fwZ01rCirvx1z4qB4X+BxifO4zGyZxCHCBT4+zdZm7s0voSXHAtOKHBZ6 ZX0docgoVMF3YmzBMEOZprOEx0LbCenbnWDitRo+dP+XqYazTnYEkvZe92ShU5nBOMuW WbmETkgYJvqsRxdTc2EaqZezVhuwk7YUyLz3FHUkduj0ZAAaVIBMHmv0TcgaMEZlIg0j MJGtr4dFOtJ+splisPraBAfvlqOlns5z+pnHBR5+GFhFnOWcSk+2bxkCEGnqnbVtqmTw qDAA== X-Gm-Message-State: AOAM53125E9r2X/IkBp1f1PvwjsucNdKbfaQPZ2k4shl1VuEan3E7LZE cH0HpmjeWr0W71INSSLaVg8= X-Google-Smtp-Source: ABdhPJzVcQPLFoyzQURv59/W6q+3zk0rHzQU9wzOMApFH+qo2tV5wt4OKWE9+NoC3FoZg9zQg9hIJw== X-Received: by 2002:a5d:58ef:: with SMTP id f15mr4378941wrd.108.1639856599427; Sat, 18 Dec 2021 11:43:19 -0800 (PST) Original-Received: from amdahl30 ([2a01:e0a:253:fe0:2ef0:5dff:fed2:7b49]) by smtp.gmail.com with ESMTPSA id p2sm2063296wrs.112.2021.12.18.11.43.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Dec 2021 11:43:18 -0800 (PST) In-Reply-To: <83o85dajha.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 18 Dec 2021 19:52:33 +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:222622 Archived-At: Eli Zaretskii writes: >> From: Juri Linkov >> Cc: Eli Zaretskii , 51016@debbugs.gnu.org, larsi@gnus.org, >> orontee@gmail.com >> Date: Sat, 18 Dec 2021 19:05:52 +0200 >> >> > As a user, I still consider that Emacs tripping over form feeds >> > when I ask it to go to the next heading is a plain bug >> >> Indeed, it's a plain bug: when the new variable outline-minor-mode-use-buttons >> is enabled, ^L lines displayed as outline headings are making a mess: > > I guess I'm blind, since I see neither a bug nor a mess. 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. 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. That leads to what Juri and I consider "absurd" results: - outline-forward-same-level pauses on them: why? There's nothing for a user to expand or collapse there; - outline-minor-mode-use-buttons adds these clickable buttons: why? There's nothing for a user to expand or collapse there.