all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jan Braun <Jan.Braun@klein-gallien.org>
To: Arash Esbati <arash@gnu.org>
Cc: 62278@debbugs.gnu.org
Subject: bug#62278: 28.2; Outline in DocTeX mode
Date: Mon, 27 Mar 2023 11:58:50 +0200	[thread overview]
Message-ID: <1E6102CE-EA46-43CE-B7AE-0310757CCC03@klein-gallien.org> (raw)
In-Reply-To: <86wn3263b7.fsf@gnu.org>

Hi Arash,

> Am 27.03.2023 um 09:50 schrieb Arash Esbati <arash@gnu.org>:
> 
> Jan Braun <Jan.Braun@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@klein-gallien.org


=== ypchsh /usr/local/bin/emacs === go FORTH now … ===






  reply	other threads:[~2023-03-27  9:58 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-19 17:36 bug#62278: 28.2; Outline in DocTeX mode Jan Braun
2023-03-21  7:43 ` Arash Esbati
2023-03-21  8:45   ` Jan Braun
2023-03-21 11:09     ` Arash Esbati
     [not found]       ` <5EC720A1-129F-439E-AE98-C7D9E7E8C94C@klein-gallien.org>
2023-03-25  7:08         ` Jan Braun
2023-03-25 15:51           ` Arash Esbati
2023-03-25 18:00             ` Jan Braun
2023-03-25 21:35               ` Arash Esbati
2023-03-26  7:55                 ` Jan Braun
2023-03-27  7:50                   ` Arash Esbati
2023-03-27  9:58                     ` Jan Braun [this message]
2023-03-27 10:14                       ` Arash Esbati
2023-03-27 13:34                         ` Jan Braun
2023-03-27 17:48                           ` Arash Esbati
2023-03-28  6:01                             ` Jan Braun
2023-03-28  7:42                               ` Arash Esbati
2023-03-28  8:21                                 ` Jan Braun
2023-03-28  8:33                                   ` Arash Esbati

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

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

  git send-email \
    --in-reply-to=1E6102CE-EA46-43CE-B7AE-0310757CCC03@klein-gallien.org \
    --to=jan.braun@klein-gallien.org \
    --cc=62278@debbugs.gnu.org \
    --cc=arash@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.