GNU bug report logs - #48610
texinfo heading levels not highlighted by outline-minor-mode

Previous Next

Package: emacs;

Reported by: pauline-galea <at> gmx.com

Date: Sun, 23 May 2021 15:09:01 UTC

Severity: minor

Tags: notabug

Fixed in version 28.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 48610 in the body.
You can then email your comments to 48610 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#48610; Package emacs. (Sun, 23 May 2021 15:09:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to pauline-galea <at> gmx.com:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 23 May 2021 15:09:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: pauline-galea <at> gmx.com
To: bug-gnu-emacs <at> gnu.org
Subject: texinfo heading levels not highlighted by outline-minor-mode
Date: Sun, 23 May 2021 11:44:35 +0200
I cannot see that texinfo heading levels get highlighted with different colours
when using outline-minor-mode.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48610; Package emacs. (Tue, 25 May 2021 20:39:03 GMT) Full text and rfc822 format available.

Message #8 received at 48610 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: pauline-galea <at> gmx.com
Cc: 48610 <at> debbugs.gnu.org
Subject: Re: bug#48610: texinfo heading levels not highlighted by
 outline-minor-mode
Date: Tue, 25 May 2021 23:23:56 +0300
> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48610; Package emacs. (Tue, 25 May 2021 20:54:03 GMT) Full text and rfc822 format available.

Message #11 received at 48610 <at> debbugs.gnu.org (full text, mbox):

From: pauline-galea <at> gmx.com
To: Juri Linkov <juri <at> linkov.net>
Cc: 48610 <at> debbugs.gnu.org
Subject: bug#48610: texinfo heading levels not highlighted by
 outline-minor-mode
Date: Tue, 25 May 2021 22:50:50 +0200
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 <at> linkov.net>
> To: pauline-galea <at> gmx.com
> Cc: 48610 <at> 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.
>




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48610; Package emacs. (Tue, 25 May 2021 21:28:02 GMT) Full text and rfc822 format available.

Message #14 received at 48610 <at> debbugs.gnu.org (full text, mbox):

From: pauline-galea <at> gmx.com
To: Juri Linkov <juri <at> linkov.net>
Cc: 48610 <at> debbugs.gnu.org
Subject: bug#48610: texinfo heading levels not highlighted by
 outline-minor-mode
Date: Tue, 25 May 2021 23:16:14 +0200

> Sent: Wednesday, May 26, 2021 at 8:23 AM
> From: "Juri Linkov" <juri <at> linkov.net>
> To: pauline-galea <at> gmx.com
> Cc: 48610 <at> 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.
>




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48610; Package emacs. (Thu, 27 May 2021 22:50:01 GMT) Full text and rfc822 format available.

Message #17 received at 48610 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: pauline-galea <at> gmx.com
Cc: 48610 <at> debbugs.gnu.org
Subject: Re: bug#48610: texinfo heading levels not highlighted by
 outline-minor-mode
Date: Fri, 28 May 2021 01:33:54 +0300
> 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?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48610; Package emacs. (Sat, 29 May 2021 22:15:02 GMT) Full text and rfc822 format available.

Message #20 received at 48610 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: pauline-galea <at> gmx.com
Cc: 48610 <at> debbugs.gnu.org
Subject: Re: bug#48610: texinfo heading levels not highlighted by
 outline-minor-mode
Date: Sun, 30 May 2021 00:43:02 +0300
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.




Added tag(s) notabug. Request was from Juri Linkov <juri <at> linkov.net> to control <at> debbugs.gnu.org. (Sat, 29 May 2021 22:15:03 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.0.50, send any further explanations to 48610 <at> debbugs.gnu.org and pauline-galea <at> gmx.com Request was from Juri Linkov <juri <at> linkov.net> to control <at> debbugs.gnu.org. (Sat, 29 May 2021 22:15:04 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 27 Jun 2021 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 297 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.