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.devel Subject: Re: Cycling first N heading levels in outline Date: Mon, 24 May 2021 12:57:34 +0200 Message-ID: <87im381js1.fsf@gmail.com> References: <87wnrqt5re.fsf@localhost> <875yz9bjrf.fsf@localhost> 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="9430"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org, Stefan Monnier , Jean Louis , Ihor Radchenko To: Christopher Dimech Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 24 12:58:38 2021 Return-path: Envelope-to: ged-emacs-devel@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 1ll8IA-0002IA-8O for ged-emacs-devel@m.gmane-mx.org; Mon, 24 May 2021 12:58:38 +0200 Original-Received: from localhost ([::1]:41500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ll8I9-00006w-8y for ged-emacs-devel@m.gmane-mx.org; Mon, 24 May 2021 06:58:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ll8HD-0007Gl-MR for emacs-devel@gnu.org; Mon, 24 May 2021 06:57:39 -0400 Original-Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:46905) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ll8HB-0004d1-PA for emacs-devel@gnu.org; Mon, 24 May 2021 06:57:39 -0400 Original-Received: by mail-wr1-x42a.google.com with SMTP id y14so25987184wrm.13 for ; Mon, 24 May 2021 03:57:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=2PgC6ktE/bsE4vzLz2/JZ+6Omcf9X8ig/g2etrgGddc=; b=kXlsKciyKMis27b6vIlmOqXO8y57cjL+8FQ57IFkOHHcI1dxVjH6xmQS2YiLqlpe0F NPvuJg7ZPi5obnnA+w3y2uBq4kH7Q0Xe+W3a5wsDgE0X/uLC/B2DvPCX/rqY744rdZly uKiVUcau42wiIwTQ6s6sKAoVRQ9R3pUsfMKExXfHucKsQ930qXe0OcaEnodz6Wo8Y6+p af3b7jmpsVLWRbeRFdhArIyDqkNmglMymQwGaatrd3BNhlGz6vPyMbHpNTDpDFi0nSXP G0kStQxczxA3rhi8pg0uNNfGgGiV5X/S96Fq6+ygn66f2A1wPFC9T4o6jiVXOoYz3Kal 6IrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=2PgC6ktE/bsE4vzLz2/JZ+6Omcf9X8ig/g2etrgGddc=; b=uec3dKfLRREvPMka92T7eVHVg3uPUOjkCd4DmcK23+tQX3rnzM+miQujGdcfEuMb/t g7KU/uF937gtrqzOxQGiuVbMXWz+rb5YpSXGMVOAxg5QwUijqBS7b2klipOoB689dvpt 6y/O/HNPvrvvcS/OnfhtFz24QVohC39mHUwylobdeJvdHsdWDf0wfIc9rdrOp0jnYiM1 RQsetekg3V2GnCcOlukMOqwFvELz/jguJjLvCTotLdIs5Gpdog+CjTsxeDcMXVW9Hqh8 P6olTLxycGDuLDOENKCWYvEB2ks7R6mB+3zTXi2ob6Mn3qgcZq5Sjb2ekFF5TS8RpaoN SVnA== X-Gm-Message-State: AOAM5318FeMHfHbwH66ni7Og6SXY0Sc1liZTe5lc7lPEiMBXpdbQYm39 8Y2IoSfADLj40ikk1dVMVe/G2QAbsAxqoA== X-Google-Smtp-Source: ABdhPJyHZiCHKmgPkVvzn8fwdJrumHwTiGLlM+MtAAsgAtqMRD+vHh4pkvylLzc+H7UCEQaQrG3FlQ== X-Received: by 2002:a5d:5989:: with SMTP id n9mr21067633wri.60.1621853855364; Mon, 24 May 2021 03:57:35 -0700 (PDT) Original-Received: from amdahl30 ([2a01:e0a:20e:d340:2ef0:5dff:fed2:7b49]) by smtp.gmail.com with ESMTPSA id x2sm7351465wmc.21.2021.05.24.03.57.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 May 2021 03:57:34 -0700 (PDT) In-Reply-To: (Christopher Dimech's message of "Mon, 24 May 2021 12:34:00 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=kevin.legouguec@gmail.com; helo=mail-wr1-x42a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:269748 Archived-At: Christopher Dimech writes: >> The convention used in ELisp is: >> >> ;;; Section >> ;;;; Subsection >> ;;;;; Subsubsection >> ;;;;;; Subsubsubsection >> ;;;;;;; Subsubsubsubsection >> [...] > > The headings still look like comments, whereas they are supposed to get h= ighlighted > according to the heading level. > > Could we get that to work in said way? On Emacs master, the outline-minor-mode-highlight option allows you to customize how headings are fontified: > When t, it puts outline faces only if there are no major mode=E2=80=99s f= aces > on headings. When =E2=80=98override=E2=80=99, it completely overwrites m= ajor mode=E2=80=99s > faces with outline faces. When =E2=80=98append=E2=80=99, it tries to app= end outline > faces to major mode=E2=80=99s faces.