GNU bug report logs -
#62278
28.2; Outline in DocTeX mode
Previous Next
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
Hi Arash,
> Am 27.03.2023 um 09:50 schrieb Arash Esbati <arash <at> gnu.org>:
>
> Jan Braun <Jan.Braun <at> klein-gallien.org> writes:
>
>> Done that and: eh voila: It worked on your example DTX file, as
>> well as on my DTX files, I am actually working on.
>
> Thanks for the confirmation.
You are more than welcome.
>> Do you have any suggestions, how to make that code work
>> automagically on Emacsens startup?
>
> Add that lisp snippet to your init file and you should be fine.
As you might remember: that was the starting point. As I wrote
in my message from 2023-03-12, 09:45
>> Emacs complains
>>
>> Debugger entered--Lisp error: (void-variable latex-outline-regexp)
>> (set (make-local-variable 'outline-regexp) latex-outline-regexp)
>> (add-hook 'doctex-mode-hook #'(lambda nil (set (make-local-variable 'latex-outline-regexp) (concat "[% \11]*" "\\\\" (regexp-opt (append latex-metasection-list (mapcar ... latex-section-alist)) t)))) (set (make-local-variable 'outline-regexp) latex-outline-regexp))
>> eval-buffer(#<buffer *load*> nil "/Users/tmjb/.emacs" nil t) ; Reading at buffer position 30847
>> load-with-code-conversion("/Users/tmjb/.emacs" "/Users/tmjb/.emacs" t t)
>> load("~/.emacs" noerror nomessage)
>> startup--load-user-init-file(#f(compiled-function () #<bytecode -0x148e3df754d535f>) #f(compiled-function () #<bytecode -0x1f3c686ddc0d6275>) t)
>> command-line()
>> normal-top-level()
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.
Bye
Jan
--
Jan Braun (er/ihm)
Jan.Braun <at> klein-gallien.org
=== ypchsh /usr/local/bin/emacs === go FORTH now … ===
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.