unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: pauline-galea@gmx.com
To: Juri Linkov <juri@linkov.net>
Cc: 48610@debbugs.gnu.org
Subject: bug#48610: texinfo heading levels not highlighted by outline-minor-mode
Date: Tue, 25 May 2021 23:16:14 +0200	[thread overview]
Message-ID: <trinity-b4977a90-6c17-4d80-a6f4-6c5991381cda-1621977374217@3c-app-mailcom-bs01> (raw)
In-Reply-To: <87k0nm7jur.fsf@mail.linkov.net>



> Sent: Wednesday, May 26, 2021 at 8:23 AM
> From: "Juri Linkov" <juri@linkov.net>
> To: pauline-galea@gmx.com
> Cc: 48610@debbugs.gnu.org
> Subject: Re: bug#48610: texinfo heading levels not highlighted by outline-minor-mode
>
> > I cannot see that texinfo heading levels get highlighted with different colours
> > when using outline-minor-mode.
>
> Do you see texinfo heading levels highlighted with different colours
> when using outline-mode instead of outline-minor-mode?
>
> If not, then outline-regexp is incorrectly specified in texinfo-mode.

This is what I am using

(defvar hdlevels
   '( ("@chapter" . 1)
      ("@section" . 1)
      ("@subsection" . 2)
      ("@subsubsection" . 3)
      ;; ---------------------------------------------------------
      ("@unnumbered" . 1)
      ("@unnumberedsec" . 1)
      ("@unnumberedsubsec" . 2)
      ("@unnumberedsubsubsec" . 3)
      ;; ---------------------------------------------------------
      ("@appendix" . 1)
      ("@appendixsec" . 1)
      ("@appendixsubsec" . 2)
      ("@appendixsubsubsec" . 3)
      ;; ---------------------------------------------------------
      ("@majorheading" . 1)
      ("@chapheading" . 1)
      ("@heading" . 1)
      ("@subheading" . 2)
      ("@subsubheading" . 3) )
   "Sets heading names and levels for texinfo files." )

(defun my-outline ()
   "todo"
   (interactive)

   (setq outline-regexp
      (concat
         (regexp-opt (mapcar 'car hdlevels)) "\\>"))

   (setq outline-heading-alist hdlevels) )

(defun my-outline-hook ()
   "todo"
   (add-hook 'texinfo-mode-hook #'my-outline) )

> If yes, then could you try to customize outline-minor-mode-highlight.
>





  parent reply	other threads:[~2021-05-25 21:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-23  9:44 bug#48610: texinfo heading levels not highlighted by outline-minor-mode pauline-galea
2021-05-25 20:23 ` Juri Linkov
2021-05-25 20:50   ` pauline-galea
2021-05-25 21:16   ` pauline-galea [this message]
2021-05-27 22:33     ` Juri Linkov
2021-05-29 21:43 ` 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=trinity-b4977a90-6c17-4d80-a6f4-6c5991381cda-1621977374217@3c-app-mailcom-bs01 \
    --to=pauline-galea@gmx.com \
    --cc=48610@debbugs.gnu.org \
    --cc=juri@linkov.net \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).