Subject: bug#24412: closed (Re: bug#24412: 11.89; Wrong DocTeX-mode)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 30 May 2022 10:13:02 +0000

Your bug report

#24412: 11.89; Wrong DocTeX-mode

which was filed against the auctex package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
24412: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=24412
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#24412: 11.89; Wrong DocTeX-mode
From: Arash Esbati <[email-masked]>
To: Mosè Giordano <[email-masked]>
Cc: [email-masked], Piet van Oostrum <[email-masked]>
Date: Mon, 30 May 2022 12:12:37 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi all,

Mosè Giordano <[email-masked]> writes:

> I made `LaTeX-newline' interactive.  Can this ticket be closed now?

I'm closing this report.  If something is still open, please respond to
this message and we can re-open.

Best, Arash

Subject: 11.89; Wrong DocTeX-mode
From: Piet van Oostrum <[email-masked]>
To: [email-masked]
Date: Sun, 11 Sep 2016 17:15:07 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

In AucTeX, latex.el (line 5871) contains:

(add-to-list 'auto-mode-alist '("\\.dtx\\'" . doctex-mode))

However, AUCTeX's doctex mode is called docTeX-mode. So the line above causes the standard Emacs doctex-mode to be invoked, rather than AUCTeX's docTeX-mode. This is undesirable.

The line should be:

(add-to-list 'auto-mode-alist '("\\.dtx\\'" . docTeX-mode))

There is another thing. The documentation of docTeX-mode says:

"Major mode in AUCTeX for editing .dtx files derived from `LaTeX-mode'.
Runs `LaTeX-mode', sets a few variables and
runs the hooks in `docTeX-mode-hook'."

However, docTeX-mode-hook is never run.
------------------------------------------------------------------------

Emacs  : Aquamacs 3.3dev  GNU Emacs 25.1.1 (x86_64-apple-darwin14.1.0, NS appkit-1344.72 Version 10.10.2 (Build 14C109))
 of 2016-08-27 on d897b997d8d0ed9db56ce9d1afc679b9a3f1e2fd
Package: 11.89

current state:
==============
(setq
 AUCTeX-date "2015-11-13"
 window-system 'ns
 LaTeX-version "2e"
 TeX-style-path '("/Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/var/auctex" "/Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/auctex/style" "/Users/piet/Library/Preferences/Aquamacs Emacs/Packages/auctex/auto" "/Users/piet/Library/Preferences/Aquamacs Emacs/Packages/auctex/style" "auto" "style")
 TeX-auto-save t
 TeX-parse-self t
 TeX-master t
 TeX-command-list '(("LatexMk" "latexmk %(-PDF)%S%(mode) %(file-line-error) %(extraopts) %t"
					 TeX-run-latexmk nil (plain-tex-mode latex-mode doctex-mode) :help
					 "Run LatexMk")
					("TeX"
					 "%(PDF)%(tex) %(file-line-error) %(extraopts) %`%S%(PDFout)%(mode)%' %t"
					 TeX-run-TeX nil (plain-tex-mode ams-tex-mode texinfo-mode) :help
					 "Run plain TeX")
					("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil (latex-mode doctex-mode) :help
					 "Run LaTeX")
					("Makeinfo" "makeinfo %(extraopts) %t" TeX-run-compile nil (texinfo-mode)
					 :help "Run Makeinfo with Info output")
					("Makeinfo HTML" "makeinfo %(extraopts) --html %t" TeX-run-compile nil
					 (texinfo-mode) :help "Run Makeinfo with HTML output")
					("AmSTeX" "amstex %(PDFout) %(extraopts) %`%S%(mode)%' %t" TeX-run-TeX nil
					 (ams-tex-mode) :help "Run AMSTeX")
					("ConTeXt" "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t"
					 TeX-run-TeX nil (context-mode) :help "Run ConTeXt once")
					("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t" TeX-run-TeX nil
					 (context-mode) :help "Run ConTeXt until completion")
					("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX")
					("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber")
					("View" "%V" TeX-run-discard-or-function t t :help "Run Viewer")
					("Print" "%p" TeX-run-command t t :help "Print the file")
					("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible
					 TeX-queue-command)
					("File" "%(o?)dvips %d -o %f " TeX-run-dvips t t :help
					 "Generate PostScript file")
					("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil t :help
					 "Convert DVI file to PostScript")
					("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil t :help
					 "Convert DVI file to PDF with dvipdfmx")
					("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil t :help
					 "Convert PostScript file to PDF")
					("Index" "makeindex %s" TeX-run-index nil t :help
					 "Run makeindex to create index file")
					("Xindy" "texindy %s" TeX-run-command nil t :help
					 "Run xindy to create index file")
					("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help
					 "Check LaTeX file for correctness")
					("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode) :help
					 "Check LaTeX file for common mistakes")
					("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help
					 "Spell-check the document")
					("Clean" "TeX-clean" TeX-run-function nil t :help
					 "Delete generated intermediate files")
					("Clean All" "(TeX-clean t)" TeX-run-function nil t :help
					 "Delete generated intermediate and output files")
					("Other" "" TeX-run-command t t :help "Run an arbitrary command")
					("Jump to PDF" "%V" TeX-run-discard-or-function nil t :help "Run Viewer"))
 )
-- 
Piet van Oostrum <[email-masked]>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]