GNU bug report logs - #24412
11.89; Wrong DocTeX-mode

Previous Next

Package: auctex;

Reported by: Piet van Oostrum <piet <at> vanoostrum.org>

Date: Sun, 11 Sep 2016 16:28:01 UTC

Severity: normal

Found in version 11.89

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Piet van Oostrum <piet <at> vanoostrum.org>
To: bug-auctex <at> gnu.org
Subject: 11.89; Wrong DocTeX-mode
Date: Sun, 11 Sep 2016 17:15:07 +0200
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 <piet <at> vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]





This bug report was last modified 2 years and 361 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.