From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: uzibalqa Newsgroups: gmane.emacs.help Subject: Re: Changing foreground colours for outline-minor-mode Date: Mon, 19 Jun 2023 16:06:28 +0000 Message-ID: <_y_EKxgl0fdrOa1RyfzUKXO_Zi7touE3j-FsIGrcQJychmENZOqefHq173J0Q66WiudX9q2H_ifmWqkLhy_bkfoJ3KLLTpwE5UGWfHOQ64I=@proton.me> References: 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="31263"; mail-complaints-to="usenet@ciao.gmane.io" Cc: uzibalqa via Users list for the GNU Emacs text editor To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 19 18:07:27 2023 Return-path: Envelope-to: geh-help-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 1qBHPb-0007v2-8c for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 19 Jun 2023 18:07:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBHOz-00023w-V7; Mon, 19 Jun 2023 12:06:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBHOy-000206-8J for help-gnu-emacs@gnu.org; Mon, 19 Jun 2023 12:06:48 -0400 Original-Received: from mail-40140.protonmail.ch ([185.70.40.140]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBHOu-0008Ab-Gp for help-gnu-emacs@gnu.org; Mon, 19 Jun 2023 12:06:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1687190800; x=1687450000; bh=ppZxgxhpgF5ZLEVa387E1bn0RIVU1VJ6pJzhO2Fm7dA=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=hsAnf0zLjCNrsHg49PFCRRg36Jx/oeEXnN6B8OIKuOZsXTPAcGelBhRz1t6S1P8CC bIfoZbIlOSOTUpzDqySf3I2++c/ONQzMy8ODJrEIm1jO0BqyLkVvb1DkeYIBGE6T0r EFfLSRa86QPqlycMoNhu6JUQpMw70zarHv89URfBM3eafawU2NBLsJ3jJ5lxTg5U8d ctKOD2d615zZYxiAYi0fg13WbItvia3vyzTK8h2sexdWumSuLaUBSd6yCZt/3dRddS O2Dyb+zNOoFdw/H6bfBlMuK8PV2egKdfILIFLc+GByRzrQWxTtAwgxjWXSRPka3Be2 ZLlgXj6cfmzrA== In-Reply-To: Feedback-ID: 52887082:user:proton Received-SPF: pass client-ip=185.70.40.140; envelope-from=uzibalqa@proton.me; helo=mail-40140.protonmail.ch 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144002 Archived-At: ------- Original Message ------- On Tuesday, June 20th, 2023 at 3:53 AM, Yuri Khan w= rote: > On Mon, 19 Jun 2023 at 19:21, uzibalqa uzibalqa@proton.me wrote: >=20 > > Having changed outline-regexp to accept ";;; H1" ";;; H2", ... as outli= ne headers, > > I also want to change the foreground colours at the different heading l= evels. > >=20 > > (defvar hglevels > > '( (";;; H1" . 1) (";;; H2" . 2) (";;; H3" . 3) (";;; H4" . 4) > > (";;; H5" . 5) (";;; H6" . 6) (";;; H7" . 7) (";;; H8" . 8) )) > >=20 > > (setq outline-heading-alist hglevels) > >=20 > > But I do not see the foreground colours taking effect. >=20 >=20 > Have you customized the outline-minor-mode-highlight variable? Have > you tried each of its possible values? After changing the variable, > did you re-activate outline-minor-mode? Yes, I have set it to 'override. How does one re-activate outline-minor-mo= de, using (outline-minor-mode 1) ? =20 > (Also, what you=E2=80=99re trying to do is misguided, and if you=E2=80= =99re doing that > as a library as you=E2=80=99ve hinted in other messages, then you= =E2=80=99re harming > your users. For one thing, your modified patterns are suitable only > for languages that treat a semicolon as a comment starter, such as > Lisp; if applied indiscriminately to other languages, users will not > be able to add headings without breaking their language=E2=80=99s syntax.= ) I have started this as a test first on elisp files. =20 > (Also, when you think of a possible improvement to a question that > you=E2=80=99ve asked earlier but that hadn=E2=80=99t received a reply, yo= u should post > your improvement as a reply to that past question, not as a new > separate thread. That helps people review all the things you=E2=80=99ve s= aid > in previous versions of the question.)