From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: Changing foreground colours for outline-minor-mode Date: Mon, 19 Jun 2023 22:53:39 +0700 Message-ID: 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="1927"; mail-complaints-to="usenet@ciao.gmane.io" Cc: uzibalqa via Users list for the GNU Emacs text editor To: uzibalqa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 19 17:54:22 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 1qBHCw-0000Fc-4D for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 19 Jun 2023 17:54:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBHCX-00063h-2j; Mon, 19 Jun 2023 11:53:57 -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 1qBHCU-00063X-Bp for help-gnu-emacs@gnu.org; Mon, 19 Jun 2023 11:53:54 -0400 Original-Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qBHCS-0003pa-Op for help-gnu-emacs@gnu.org; Mon, 19 Jun 2023 11:53:54 -0400 Original-Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-3f9b37cd58bso7219455e9.0 for ; Mon, 19 Jun 2023 08:53:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687190031; x=1689782031; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=sMwi1/pkmfacBZuJ/e7QcNZ1S53Q1i7lr4g6yAlN200=; b=ZU8LsA0XcH9s9BkJXBebRM4jnABz6Ebv9RQsr7Dklbp//nRaVnAvmvSOemk5sJgH3u PMF+YKL3nqZzG217r49N+W21a/4E4OuSOvTNvNB2F0lKOVBjPtvH4/ME8EZEhIrw2euU TJVq3oxuJSD94CNxHwRc6r8X6iz+VMYlckMA/GA0Flfj7c0F/ZimMoN7y8ZnkIHj9qQ8 dmJKjeHjJ04qptpfifnLBmTD6648VNkYcM3WUHEhbCDJVYjWkvqPcCETUXhKrFmJGoEw r7t8fkw5Ym4ySIGIBhRi+W0vBRezLQ5inF8YyweNEsOLHB4acvgWTTT7/jZ5DHfRQJ69 x2Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687190031; x=1689782031; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sMwi1/pkmfacBZuJ/e7QcNZ1S53Q1i7lr4g6yAlN200=; b=jP0fJnrWVxPlKBUX75tuIcd5awlXG2+WDGs69GnSoS2ZbNj6xmNgzYdgGO+unusjlU kt74ZtoGYga/1cFb6+eefeEpbmO1q5unoCrJWoOTqVnk3jpWU7poqHOx+DE0IK6JYGna bwJUf8q3DfW1bnyKLNniTOqqspcSxK5b5pCZAbJs74HiTSwuh2l4m1TfaSnqOaZaIDEO f0kgjXKn1rDBisi8PJzeB24GStsQngPEtxk2e/hBiFt685HRtD6BE7zpPXZYVR4RhSIC +RmAalv3tfynJcbRo4n4kFburr5cuLHfI2gCVVLvhBwEHdJp1vSqgDge5YTjLzgxpjfL 4f7A== X-Gm-Message-State: AC+VfDwh9GOUHEaIBT1vV/d4abWABhr1n4l4IhtCGpLmjvlqtophUbY2 9VQIw3t7Txef1thJYl9PdgzSdm5XN+X7E0PhfdrXncai X-Google-Smtp-Source: ACHHUZ4W9boG0jj0EqwA8Doun1CK3Yf8o+JkVunQz7ta+WepjFQbc8GxzJ8tyamwPqGL3qC1w58rwNepPrqLQXyLHxA= X-Received: by 2002:a5d:6884:0:b0:311:1101:abb7 with SMTP id h4-20020a5d6884000000b003111101abb7mr5673777wru.65.1687190030617; Mon, 19 Jun 2023 08:53:50 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=yurivkhan@gmail.com; helo=mail-wm1-x32d.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, 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:144001 Archived-At: On Mon, 19 Jun 2023 at 19:21, uzibalqa wrote: > Having changed outline-regexp to accept ";;; H1" ";;; H2", ... as outline= headers, > I also want to change the foreground colours at the different heading lev= els. > > (defvar hglevels > '( (";;; H1" . 1) (";;; H2" . 2) (";;; H3" . 3) (";;; H4" . 4) > (";;; H5" . 5) (";;; H6" . 6) (";;; H7" . 7) (";;; H8" . 8) )) > > (setq outline-heading-alist hglevels) > > But I do not see the foreground colours taking effect. 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? (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=99r= e 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.) (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, you = 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 sai= d in previous versions of the question.)