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#48707: outline not distinguishing between levels well enough Date: Fri, 28 May 2021 01:44:36 +0300 Organization: LINKOV.NET Message-ID: <8735u7re3v.fsf@mail.linkov.net> References: <874keo4i4j.fsf@icterid> <87v9742srs.fsf@icterid> <877djkozc1.fsf@icterid> <8735u8ov50.fsf@icterid> <87v974nfrm.fsf@icterid> 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="26274"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: Philip Kaludercic , 48707@debbugs.gnu.org To: pauline-galea@gmx.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 28 00:50:23 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 1lmOpb-0006Zl-D9 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 May 2021 00:50:23 +0200 Original-Received: from localhost ([::1]:34620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmOpa-0002sI-Ec for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 May 2021 18:50:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmOpG-0002mW-IO for bug-gnu-emacs@gnu.org; Thu, 27 May 2021 18:50:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41461) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lmOpG-00080i-AA for bug-gnu-emacs@gnu.org; Thu, 27 May 2021 18:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lmOpG-0005Ui-8q for bug-gnu-emacs@gnu.org; Thu, 27 May 2021 18:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 May 2021 22:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48707 X-GNU-PR-Package: emacs Original-Received: via spool by 48707-submit@debbugs.gnu.org id=B48707.162215576521066 (code B ref 48707); Thu, 27 May 2021 22:50:02 +0000 Original-Received: (at 48707) by debbugs.gnu.org; 27 May 2021 22:49:25 +0000 Original-Received: from localhost ([127.0.0.1]:53006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lmOof-0005Ti-H4 for submit@debbugs.gnu.org; Thu, 27 May 2021 18:49:25 -0400 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:48461) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lmOod-0005TH-Ow for 48707@debbugs.gnu.org; Thu, 27 May 2021 18:49:24 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay11.mail.gandi.net (Postfix) with ESMTPSA id E81C5100006; Thu, 27 May 2021 22:49:15 +0000 (UTC) In-Reply-To: (pauline-galea@gmx.com's message of "Thu, 27 May 2021 21:37:26 +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:207400 Archived-At: --=-=-= Content-Type: text/plain > outline is supposed to highlight the eight different heading levels in a way that > is easy to distinguish between them. I do not see such a capability at this time. > > Settings up different colours is also quite complicated and confusing. I have originally > discussed this on "help-gnu-emacs@gnu.org", who encouraged me to send a bug report. > > I do not get different heading colours for the three heading levels below. > Philip has mentioned the possibility that the wrong face is being applied. > > --------- test.el -------- > > ;;; * heading 1 > ;; comments > ;;;; ** subheading 1.1 > ;; comments > ;;;;; *** subsubheading 1.1.1 > ;; comments Thank you very much for the bug report. This is really a bug that should be fixed by the following patch: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=outline-font-lock-keywords.patch diff --git a/lisp/outline.el b/lisp/outline.el index fa7c1a27d9..3eb3e21036 100644 --- a/lisp/outline.el +++ b/lisp/outline.el @@ -205,7 +205,8 @@ outline-font-lock-keywords (list 'face (outline-font-lock-face) 'keymap outline-mode-cycle-map) (list 'face nil - 'keymap outline-mode-cycle-map))) + 'keymap outline-mode-cycle-map)) + (list 'face (outline-font-lock-face))) (outline-font-lock-face)) (when outline-minor-mode (pcase outline-minor-mode-highlight --=-=-=--