From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.bugs Subject: bug#62278: 28.2; Outline in DocTeX mode Date: Tue, 28 Mar 2023 09:42:33 +0200 Message-ID: <864jq55nkm.fsf@gnu.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> <1E6102CE-EA46-43CE-B7AE-0310757CCC03@klein-gallien.org> <86jzz25wni.fsf@gnu.org> <5FD6AFE0-91AC-4417-9450-26DA7937EDE0@klein-gallien.org> <86mt3yozjw.fsf@gnu.org> <5298BCDB-5105-4557-A372-B373337AA1AA@klein-gallien.org> Mime-Version: 1.0 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="10050"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 62278@debbugs.gnu.org To: Jan Braun Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 28 09:43:24 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 1ph3zI-0002Tf-R2 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Mar 2023 09:43:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ph3yy-00035N-TC; Tue, 28 Mar 2023 03:43:04 -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 1ph3yx-00034h-90 for bug-gnu-emacs@gnu.org; Tue, 28 Mar 2023 03:43:03 -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 1ph3yx-0005FS-0I for bug-gnu-emacs@gnu.org; Tue, 28 Mar 2023 03:43:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ph3yw-00036k-A6 for bug-gnu-emacs@gnu.org; Tue, 28 Mar 2023 03:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Mar 2023 07:43:02 +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.167998937911936 (code B ref 62278); Tue, 28 Mar 2023 07:43:02 +0000 Original-Received: (at 62278) by debbugs.gnu.org; 28 Mar 2023 07:42:59 +0000 Original-Received: from localhost ([127.0.0.1]:48835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ph3ys-00036Q-Pp for submit@debbugs.gnu.org; Tue, 28 Mar 2023 03:42:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:32896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ph3yq-00036A-RX for 62278@debbugs.gnu.org; Tue, 28 Mar 2023 03:42:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ph3yi-0005BI-Qa; Tue, 28 Mar 2023 03:42:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=Ky+kgNAgOqH3xhla80LJ1f3hPF0VRQnzNyefMm/qRhU=; b=Vr6GHVwjKFZsnEbJ5wnp vnN5N0lEfdyA18oV7jE4dcNg3ye9CULNjd6RPPEKElIWU5PR3AwjHL+1X+IpifLCPcm021ZcATsFa 6Rf2c4m6s1umkRivOhopLEuNrFTaRkHGi4dqHpkZDcYqAVOxEo4r+Zqo+1Nmr/0/5dTjPee9si2TE +rUgBKRI5BBcG3wN86o3CFMWIQf/3DTjGfXrkMQaxmDU1NcOOrxdO91wHpwy504R8PFbobq0xXapW 63QSC0J/r0KVmbbhwFv9ACa51G3plYZLgBLiGwVodp/ORHz9OnwK/9HK8g5iWLyGLkUkP8vmRZPex OfqcYS+CXA65GQ==; Original-Received: from p5b326472.dip0.t-ipconnect.de ([91.50.100.114] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ph3yi-0003YV-D3; Tue, 28 Mar 2023 03:42:48 -0400 In-Reply-To: <5298BCDB-5105-4557-A372-B373337AA1AA@klein-gallien.org> (Jan Braun's message of "Tue, 28 Mar 2023 08:01:32 +0200") 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:258786 Archived-At: Jan Braun writes: > What do you mean with =E2=80=9Eusing AUCTeX instead of the built-in=20 > mode=E2=80=9C? I mean that there are at least 2 major modes for editing LaTeX/docTeX files. One of them is the one built in Emacs provided by this file: http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/textmodes/tex-mode.el Another one is AUCTeX which you have to install yourself (since you're on a mac, I assume you've installed yourself and pre-installed by a distro). > What kind of check should I perform? I think the easiest way is to check the mode you're using with 'C-h m'. If I open a .dtx file and hit 'C-h m', I see this because I'm using AUCTeX: The major mode is docTeX/P mode defined in tex-mode.el: This function has :override advice: =E2=80=98TeX-doctex-mode=E2=80=99. This is an :override advice, which means that =E2=80=98doctex-mode=E2=80= =99 isn=E2=80=99t run at all, and the documentation below may be irrelevant. [...] When I start Emacs with the '-Q' switch, the same file reports: The major mode is DocTeX mode defined in tex-mode.el: Major mode to edit DocTeX files. Because AUCTeX is not initialized and hence the built-in mode kicks in. > This are the essential lines of ~/.emacs: > > ;;;=20 > ;;; AUCTeX (sometimes also called AUC-TeX) was developed at the > ;;; Aalborg university in denmark. It is a mighty mode to work with > ;;; nearly any kind of TeX and LaTeX files. > (load "auctex.el" nil t t) > (require 'auctex-latexmk) > (auctex-latexmk-setup) > > Therefore I guess, I am using AUCTeX? Yes, you are. And if you have installed AUCTeX from ELPA (i.e. with M-x list-packages), then you better drop the (load "auctex.el" nil t t) line. AUCTeX is a complete different beast w.r.t to outline-mode, so the code I suggested cannot work when you use AUCTeX to edit a .dtx file. I suggest you close this report and open an AUCTeX feature request by sending a message to bug-auctex@gnu.org. Best, Arash