all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Arash Esbati <arash@gnu.org>
To: Jan Braun <Jan.Braun@klein-gallien.org>
Cc: 62278@debbugs.gnu.org
Subject: bug#62278: 28.2; Outline in DocTeX mode
Date: Tue, 28 Mar 2023 09:42:33 +0200	[thread overview]
Message-ID: <864jq55nkm.fsf@gnu.org> (raw)
In-Reply-To: <5298BCDB-5105-4557-A372-B373337AA1AA@klein-gallien.org> (Jan Braun's message of "Tue, 28 Mar 2023 08:01:32 +0200")

Jan Braun <Jan.Braun@klein-gallien.org> writes:

> What do you mean with „using AUCTeX instead of the built-in 
> mode“?

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: ‘TeX-doctex-mode’.

  This is an :override advice, which means that ‘doctex-mode’ isn’t
  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:
>
> ;;; 
> ;;; 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





  reply	other threads:[~2023-03-28  7:42 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
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 [this message]
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=864jq55nkm.fsf@gnu.org \
    --to=arash@gnu.org \
    --cc=62278@debbugs.gnu.org \
    --cc=Jan.Braun@klein-gallien.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.