unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#48610: texinfo heading levels not highlighted by outline-minor-mode
@ 2021-05-23  9:44 pauline-galea
  2021-05-25 20:23 ` Juri Linkov
  2021-05-29 21:43 ` Juri Linkov
  0 siblings, 2 replies; 6+ messages in thread
From: pauline-galea @ 2021-05-23  9:44 UTC (permalink / raw)
  To: 48610

I cannot see that texinfo heading levels get highlighted with different colours
when using outline-minor-mode.






^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#48610: texinfo heading levels not highlighted by outline-minor-mode
  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
  2021-05-29 21:43 ` Juri Linkov
  1 sibling, 2 replies; 6+ messages in thread
From: Juri Linkov @ 2021-05-25 20:23 UTC (permalink / raw)
  To: pauline-galea; +Cc: 48610

> 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.

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





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#48610: texinfo heading levels not highlighted by outline-minor-mode
  2021-05-25 20:23 ` Juri Linkov
@ 2021-05-25 20:50   ` pauline-galea
  2021-05-25 21:16   ` pauline-galea
  1 sibling, 0 replies; 6+ messages in thread
From: pauline-galea @ 2021-05-25 20:50 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 48610

I do not see any highlighting when using "M-x outline-mode".

> 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.
>
> If yes, then could you try to customize outline-minor-mode-highlight.
>





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#48610: texinfo heading levels not highlighted by outline-minor-mode
  2021-05-25 20:23 ` Juri Linkov
  2021-05-25 20:50   ` pauline-galea
@ 2021-05-25 21:16   ` pauline-galea
  2021-05-27 22:33     ` Juri Linkov
  1 sibling, 1 reply; 6+ messages in thread
From: pauline-galea @ 2021-05-25 21:16 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 48610



> 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.
>





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#48610: texinfo heading levels not highlighted by outline-minor-mode
  2021-05-25 21:16   ` pauline-galea
@ 2021-05-27 22:33     ` Juri Linkov
  0 siblings, 0 replies; 6+ messages in thread
From: Juri Linkov @ 2021-05-27 22:33 UTC (permalink / raw)
  To: pauline-galea; +Cc: 48610

> 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." )

I tried your definitions, and then outlines are highlighted.

I wonder why outline-regexp defined in texinfo-mode is broken?
What would be a correct regexp for texinfo-mode?





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#48610: texinfo heading levels not highlighted by outline-minor-mode
  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-29 21:43 ` Juri Linkov
  1 sibling, 0 replies; 6+ messages in thread
From: Juri Linkov @ 2021-05-29 21:43 UTC (permalink / raw)
  To: pauline-galea; +Cc: 48610

tags 48610 notabug
close 48610 28.0.50
thanks

> I cannot see that texinfo heading levels get highlighted with different colours
> when using outline-minor-mode.

I tried again, and everything gets highlighted in texinfo.
First you need to customize outline-minor-mode-highlight
to the value 'override' (also it's useful to customize
outline-minor-mode-cycle to t), then enable outline-minor-mode
in a texinfo mode. Then you can type S-TAB on a @chapter or @section.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-05-29 21:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2021-05-27 22:33     ` Juri Linkov
2021-05-29 21:43 ` Juri Linkov

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).