From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jan Braun Newsgroups: gmane.emacs.bugs Subject: bug#62278: 28.2; Outline in DocTeX mode Date: Mon, 27 Mar 2023 11:58:50 +0200 Message-ID: <1E6102CE-EA46-43CE-B7AE-0310757CCC03@klein-gallien.org> References: <864jqepn0i.fsf@gnu.org> <86355yxsx7.fsf@gnu.org> <5EC720A1-129F-439E-AE98-C7D9E7E8C94C@klein-gallien.org> <0AB85CE9-29C1-41E2-BB75-D4741F4218E3@klein-gallien.org> <864jq8g77m.fsf@gnu.org> <586B4D25-EB57-441E-9E4D-EB3142F7AE9A@klein-gallien.org> <86wn34y0nj.fsf@gnu.org> <86wn3263b7.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8235"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62278@debbugs.gnu.org To: Arash Esbati Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 27 15:16:28 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pgmi3-0001ra-IU for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Mar 2023 15:16:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pgmgp-0002nQ-DD; Mon, 27 Mar 2023 09:15:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pgmgl-0002jc-Bs for bug-gnu-emacs@gnu.org; Mon, 27 Mar 2023 09:15:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pgmgk-0001sx-VM for bug-gnu-emacs@gnu.org; Mon, 27 Mar 2023 09:15:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pgmgk-0005Nv-Lp for bug-gnu-emacs@gnu.org; Mon, 27 Mar 2023 09:15:06 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan Braun Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Mar 2023 13:15:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62278 X-GNU-PR-Package: emacs Original-Received: via spool by 62278-submit@debbugs.gnu.org id=B62278.167992285220538 (code B ref 62278); Mon, 27 Mar 2023 13:15:06 +0000 Original-Received: (at 62278) by debbugs.gnu.org; 27 Mar 2023 13:14:12 +0000 Original-Received: from localhost ([127.0.0.1]:46776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pgmfr-0005L7-Bg for submit@debbugs.gnu.org; Mon, 27 Mar 2023 09:14:11 -0400 Original-Received: from oker.escape.de ([194.120.234.254]:43024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pgje2-0005oc-M9 for 62278@debbugs.gnu.org; Mon, 27 Mar 2023 06:00:08 -0400 Original-Received: from oker.escape.de (localhost [127.0.0.1]) (envelope-sender: Jan.Braun@klein-gallien.org) by oker.escape.de (8.15.2/8.15.2/$Revision: 1.91 $) with ESMTPS id 32RA05Df023435 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 27 Mar 2023 12:00:05 +0200 Original-Received: (from uucp@localhost) by oker.escape.de (8.15.2/8.15.2/Submit) with UUCP id 32RA054l023434; Mon, 27 Mar 2023 12:00:05 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by mail.klein-gallien.org (Postfix) with ESMTP id 068B02EC1; Mon, 27 Mar 2023 11:58:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=klein-gallien.org; s=mail; t=1679911132; bh=4+HCrKxQ9LBCiUh+NQbRFONc6Ng64JUzy0ItEy1kJNg=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=N1qwJoRDLo3Ym1+pFAjwzbgcw3/MCgH29ETJi+rpJztbp+UKev5bshqfBNMrySReB EF4iNkhr/MabU0HiurtiDG0tMq5JJT8XkBSxkYpfIw0u3fwMKCfwrZe4GTw2H5oQUr 6Ll1t+BQAir/DzCguGp1+NnepbNjN0RdnWCoJ9tw= X-Virus-Scanned: Debian amavisd-new at klein-gallien.org Original-Received: from mail.klein-gallien.org ([127.0.0.1]) by localhost (mail.klein-gallien.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BqBsxXbHb088; Mon, 27 Mar 2023 11:58:50 +0200 (CEST) Original-Received: from smtpclient.apple (staff0004.wlan.tu-clausthal.de [139.174.76.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.klein-gallien.org (Postfix) with ESMTPSA id 232D92E38; Mon, 27 Mar 2023 11:58:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=klein-gallien.org; s=mail; t=1679911130; bh=4+HCrKxQ9LBCiUh+NQbRFONc6Ng64JUzy0ItEy1kJNg=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=DvyAE3j7UU27wQd2pdC//X11++Xn+UtIhYgYs19qlFiOXvRGLjA4rm3vvvRZVjSCp IjMKfk/JA7ft0B1st5D1c8H9J/rwiKlgqejYGZ001V7q4NCTy/gm+cmVpq79/EsM/D OyqwrI21oJvKYjrJOjURCZyKQ2KEOW3qynhzm8iI= In-Reply-To: <86wn3263b7.fsf@gnu.org> X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Mailman-Approved-At: Mon, 27 Mar 2023 09:14:06 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:258723 Archived-At: Hi Arash, > Am 27.03.2023 um 09:50 schrieb Arash Esbati : >=20 > Jan Braun writes: >=20 >> Done that and: eh voila: It worked on your example DTX file, as=20 >> well as on my DTX files, I am actually working on. >=20 > Thanks for the confirmation. You are more than welcome. >> Do you have any suggestions, how to make that code work=20 >> automagically on Emacsens startup? >=20 > 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=20 in my message from 2023-03-12, 09:45 >> Emacs complains >>=20 >> 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(# 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 () #) #f(compiled-function () #) t) >> command-line() >> normal-top-level() Your fix only works in a plain Emacsen, being started without=20 any kind of init file. :-( So, in principle, your fix works, but not, if I place it in my=20 init file. Bye Jan --=20 Jan Braun (er/ihm) Jan.Braun@klein-gallien.org =3D=3D=3D ypchsh /usr/local/bin/emacs =3D=3D=3D go FORTH now =E2=80=A6 = =3D=3D=3D