From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: uzibalqa via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64177: outline-minor-mode-highlight fails to activate for custom headings Date: Tue, 20 Jun 2023 20:06:23 +0000 Message-ID: References: <867crytzr9.fsf@mail.linkov.net> <86jzvyqdrg.fsf@mail.linkov.net> Reply-To: uzibalqa 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="6457"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64177@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 20 22:07:26 2023 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 1qBhdO-0001Tj-Az for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Jun 2023 22:07:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBhd7-0006XG-RX; Tue, 20 Jun 2023 16:07:09 -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 1qBhd0-0006WN-Lz for bug-gnu-emacs@gnu.org; Tue, 20 Jun 2023 16:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qBhd0-0000yl-Ar for bug-gnu-emacs@gnu.org; Tue, 20 Jun 2023 16:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qBhcz-00057l-N3 for bug-gnu-emacs@gnu.org; Tue, 20 Jun 2023 16:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: uzibalqa Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Jun 2023 20:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64177 X-GNU-PR-Package: emacs Original-Received: via spool by 64177-submit@debbugs.gnu.org id=B64177.168729161319679 (code B ref 64177); Tue, 20 Jun 2023 20:07:01 +0000 Original-Received: (at 64177) by debbugs.gnu.org; 20 Jun 2023 20:06:53 +0000 Original-Received: from localhost ([127.0.0.1]:59806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBhcq-00057L-DP for submit@debbugs.gnu.org; Tue, 20 Jun 2023 16:06:52 -0400 Original-Received: from mail-4319.protonmail.ch ([185.70.43.19]:27737) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBhcl-00056w-Pl for 64177@debbugs.gnu.org; Tue, 20 Jun 2023 16:06:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=xpowlm22izhvte5ftwr6kyub6m.protonmail; t=1687291601; x=1687550801; bh=tpygQ95XAOQwpQ17cbDxEvmDjgILLMkKl3Nagq4yBto=; 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=lwWOHU5zlPi8R81nr/Or7Dp8wR17NwiLXnC1JKpkTjfj6PAEZ+CF8VJlW7b65QjOq DpFfjeuIxfCxgKG5GBje/y1CBgk9Tekqhg7yZiqA+NKo1iRdxjP3f1Pdf9dTnwaYYn f70DlvMRGHo5KxITvjVKKVfG8WdzexS5oO4yu7ROMKty7P3QMKI/1nqoxf3bG2apjj XQI2/TYQxsVs8IDMkuHdxgzdSJYd/o5YRAgIoX4l3ONgeY5nH6hU1Kqn0FB7DZ9y2A NEy5njgWZc2yNTDUcgyklygq3dTlLG3ySVEY5y53d1cF/DfV5vUbg1UtLve6Z4Dzrq psvvz2xwl5thQ== In-Reply-To: <86jzvyqdrg.fsf@mail.linkov.net> Feedback-ID: 52887082:user:proton 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:263775 Archived-At: ------- Original Message ------- On Wednesday, June 21st, 2023 at 4:50 AM, Juri Linkov wro= te: > > I have done this and still showing failure upon 'override > >=20 > > (defvar elisp-hglevels > > '( (";;; H1" . 1) (";;; H2" . 2) (";;; H3" . 3) (";;; H4" . 4) > > (";;; H5" . 5) (";;; H6" . 6) (";;; H7" . 7) (";;; H8" . 8) )) > > ... > > ((eq major-mode 'emacs-lisp-mode) > > ... > > (outline-minor-mode 0) > > (setq outline-minor-mode-highlight 'override) > > (outlhg-regexp) > > (outlhg-tyface) > > (outline-minor-mode 1) >=20 >=20 > Please also try: >=20 > (setq-local outline-level 'outline-level) >=20 > because 'emacs-lisp-mode' overrides the default value > with own 'lisp-outline-level'. Now that I have tried your suggestion, I can the the requested highlighting= . I see that the value of outline-level is lisp-outline-level. Whereas with = your change it is outline-level. In principle, shouldn't outline-level be directly determined by the level s= pecified=20 in outline-heading-alist ? If emacs-lisp-mode sets outline-heading-alist i= tself properly then any level information can be extracted from there. Then the = setup would run more smoothly because it would be consistent with the way one would act= ually customise it.