GNU bug report logs - #62278
28.2; Outline in DocTeX mode

Previous Next

Package: emacs;

Reported by: Jan Braun <Jan.Braun <at> klein-gallien.org>

Date: Sun, 19 Mar 2023 18:15:02 UTC

Severity: normal

Tags: notabug

Found in version 28.2

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Arash Esbati <arash <at> gnu.org>
To: Jan Braun <Jan.Braun <at> klein-gallien.org>
Cc: 62278 <at> debbugs.gnu.org
Subject: bug#62278: 28.2; Outline in DocTeX mode
Date: Mon, 27 Mar 2023 12:14:09 +0200
Jan Braun <Jan.Braun <at> klein-gallien.org> writes:

> Your fix only works in a plain Emacsen, being started without 
> any kind of init file. :-(
>
> So, in principle, your fix works, but not, if I place it in my 
> init file.

You mean putting this in your init file still throws an error?

  (with-eval-after-load "tex-mode"
    (add-hook 'doctex-mode-hook
              (lambda ()
                (setq-local latex-outline-regexp
                            (concat "[% \t]*" "\\\\"
                                    (regexp-opt
                                     (append latex-metasection-list
                                             (mapcar #'car latex-section-alist))
                                     t)))
                (setq-local outline-regexp latex-outline-regexp))))

Best, Arash




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

Previous Next


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