all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: uzibalqa via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Juri Linkov <juri@linkov.net>
Cc: 64177@debbugs.gnu.org
Subject: bug#64177: outline-minor-mode-highlight fails to activate for custom headings
Date: Tue, 20 Jun 2023 20:06:23 +0000	[thread overview]
Message-ID: <KALZj_J_FEYgeRMpIJZpzRYUI0abBcIfnSg7SOQ6YbcCTFLjLt83cs4XfgmVHzuEGUu6MOVUsQBBIE5P0EkINf7PdfI8SLEZocJT1Sfl4Vc=@proton.me> (raw)
In-Reply-To: <86jzvyqdrg.fsf@mail.linkov.net>


------- Original Message -------
On Wednesday, June 21st, 2023 at 4:50 AM, Juri Linkov <juri@linkov.net> wrote:


> > I have done this and still showing failure upon 'override
> > 
> > (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)
> 
> 
> Please also try:
> 
> (setq-local outline-level 'outline-level)
> 
> 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 specified 
in outline-heading-alist ?  If emacs-lisp-mode sets outline-heading-alist itself
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 actually
customise it.








  reply	other threads:[~2023-06-20 20:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-19 20:13 bug#64177: outline-minor-mode-highlight fails to activate for custom headings uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-20  6:50 ` Juri Linkov
2023-06-20 10:55   ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-20 16:50     ` Juri Linkov
2023-06-20 20:06       ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-06-21  6:13         ` Juri Linkov
2023-06-21 10:14           ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-21 15:58             ` Juri Linkov
2023-06-24 12:21               ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-25 17:13                 ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='KALZj_J_FEYgeRMpIJZpzRYUI0abBcIfnSg7SOQ6YbcCTFLjLt83cs4XfgmVHzuEGUu6MOVUsQBBIE5P0EkINf7PdfI8SLEZocJT1Sfl4Vc=@proton.me' \
    --to=bug-gnu-emacs@gnu.org \
    --cc=64177@debbugs.gnu.org \
    --cc=juri@linkov.net \
    --cc=uzibalqa@proton.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.