From unknown Sun Jun 22 11:32:06 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#24412 <24412@debbugs.gnu.org> To: bug#24412 <24412@debbugs.gnu.org> Subject: Status: 11.89; Wrong DocTeX-mode Reply-To: bug#24412 <24412@debbugs.gnu.org> Date: Sun, 22 Jun 2025 18:32:06 +0000 retitle 24412 11.89; Wrong DocTeX-mode reassign 24412 auctex submitter 24412 Piet van Oostrum severity 24412 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 11 12:27:05 2016 Received: (at submit) by debbugs.gnu.org; 11 Sep 2016 16:27:05 +0000 Received: from localhost ([127.0.0.1]:56645 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bj7az-0002dP-4M for submit@debbugs.gnu.org; Sun, 11 Sep 2016 12:27:05 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51276) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bj6Uw-0000oF-Eb for submit@debbugs.gnu.org; Sun, 11 Sep 2016 11:16:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bj6Up-00010c-VJ for submit@debbugs.gnu.org; Sun, 11 Sep 2016 11:16:41 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38777) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj6Up-00010T-SB for submit@debbugs.gnu.org; Sun, 11 Sep 2016 11:16:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj6Un-0000Zt-3i for bug-auctex@gnu.org; Sun, 11 Sep 2016 11:16:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bj6Ui-0000zL-SA for bug-auctex@gnu.org; Sun, 11 Sep 2016 11:16:36 -0400 Received: from mail-wm0-f53.google.com ([74.125.82.53]:37757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj6Ui-0000pm-If for bug-auctex@gnu.org; Sun, 11 Sep 2016 11:16:32 -0400 Received: by mail-wm0-f53.google.com with SMTP id c131so19975447wmh.0 for ; Sun, 11 Sep 2016 08:16:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:mime-version:content-transfer-encoding:message-id:date:from :to:subject:reply-to; bh=/n/ObJ2Sge85amQcX2iyPFWqavYtu902Mc0/vtuKSn8=; b=WVnDzIa4FUMCwYZUAoHyZuFg45kztfkFUTUzM3oliIpb2WawQFS6/UlyI4XRzJYRDF xx2mIV3oiKDBD36dkSdfnb+5XF3qWEsmVInvg371QnajGxwnXDs/+TQO8y6kF4Pzageo PpqLaJd7ydU87HR6iLuULjjZObmKNlO3EWCxEdlGdb+8M+cjjh7wBnTXtAq96a0qsrAN ddk1140wFD6Jl9EQs4weVJv5nvYSc33TjyejGj4b1DkMR9EAgZmFoQeFGtd9woJW9cRC wFxlaKRMHAv35eYtJBQCBVFBUcGYtmbog/7enL9LUCJY4QENxPxXE38Wu5gXOW6UooA9 mivQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:mime-version:content-transfer-encoding :message-id:date:from:to:subject:reply-to; bh=/n/ObJ2Sge85amQcX2iyPFWqavYtu902Mc0/vtuKSn8=; b=aWYUhSg80CJ3zctveZBOR54lDaGuImTHsHgswg6/Je6tAfJ4dg1hKa0PhZRso7+KbO dOSni8XPQK7wb+/DAePsvxWC8e9HX7jJm8N38htLu8AxuPzzeIT0xIQv3Uq7zsZDUp2M greCu7U7aRpvH1LHOKMpoLQBwk7LidpBdwdRf2pwh3j4lWLBLJhIt4BPvdJ9u0S337zS tF6743pc5AxZfzORITswxzoZ6TgZoZQ7rB11NXm5wg6ZFjzE7f+d/RjkHh0MBXF8VH2t ijZYEycjx4Xunity097TTrxGuB5368yiKnt+AdnpLj1+d2GgAIitZ08ttR5UPieMIx5h 1wsg== X-Gm-Message-State: AE9vXwMax69OETaI+HAZ/ZF9DNyBbFRZi9wTrOEZ2VqfZBMbpaDzTIt1s3wJw/y0nBXgEg== X-Received: by 10.28.197.76 with SMTP id v73mr7166935wmf.100.1473606910223; Sun, 11 Sep 2016 08:15:10 -0700 (PDT) Received: from cochabamba.vanoostrum.org ([145.132.212.31]) by smtp.gmail.com with ESMTPSA id y2sm663607wji.42.2016.09.11.08.15.09 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 11 Sep 2016 08:15:09 -0700 (PDT) Received: from cochabamba.vanoostrum.org (localhost [127.0.0.1]) by cochabamba.vanoostrum.org (Postfix) with ESMTP id F09D538B20CD for ; Sun, 11 Sep 2016 17:15:07 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <22485.29947.311199.101925@cochabamba.vanoostrum.org> Date: Sun, 11 Sep 2016 17:15:07 +0200 From: Piet van Oostrum To: bug-auctex@gnu.org Subject: 11.89; Wrong DocTeX-mode X-Mailer: VM 8.2.0b under 25.1.1 (x86_64-apple-darwin14.1.0) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 11 Sep 2016 12:27:04 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Piet van Oostrum Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) 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 WWW: http://pietvanoostrum.com/ PGP key: [8DAE142BE17999C4] From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 11 16:33:37 2016 Received: (at 24412) by debbugs.gnu.org; 11 Sep 2016 20:33:37 +0000 Received: from localhost ([127.0.0.1]:56804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjBRY-0001dG-UB for submit@debbugs.gnu.org; Sun, 11 Sep 2016 16:33:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjBRX-0001d4-Cw for 24412@debbugs.gnu.org; Sun, 11 Sep 2016 16:33:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjBRR-00026f-9Q for 24412@debbugs.gnu.org; Sun, 11 Sep 2016 16:33:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52652 helo=lola.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjBRQ-00026O-UR; Sun, 11 Sep 2016 16:33:29 -0400 Received: by lola.localdomain (Postfix, from userid 1000) id 03FBEDF727; Sun, 11 Sep 2016 22:26:17 +0200 (CEST) From: David Kastrup To: Piet van Oostrum Subject: Re: bug#24412: 11.89; Wrong DocTeX-mode References: <22485.29947.311199.101925@cochabamba.vanoostrum.org> Date: Sun, 11 Sep 2016 22:26:16 +0200 In-Reply-To: <22485.29947.311199.101925@cochabamba.vanoostrum.org> (Piet van Oostrum's message of "Sun, 11 Sep 2016 17:15:07 +0200") Message-ID: <87k2ei2nfb.fsf@fencepost.gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -7.2 (-------) X-Debbugs-Envelope-To: 24412 Cc: 24412@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.2 (-------) Piet van Oostrum writes: > 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 ca= uses the standard Emacs doctex-mode to be invoked, rather than AUCTeX's doc= TeX-mode. This is undesirable. > > The line should be: > > (add-to-list 'auto-mode-alist '("\\.dtx\\'" . docTeX-mode)) Why? It doesn't change the other modes either. The point is that they are mapped to the AUCTeX modes on-demand, see TeX-modes is a variable defined in =E2=80=98tex-site.el=E2=80=99. Its value is (tex-mode plain-tex-mode texinfo-mode latex-mode doctex-mode) Documentation: List of modes provided by AUCTeX. This variable can=E2=80=99t be set normally; use customize for that, or set it with =E2=80=98TeX-modes-set=E2=80=99. You can customize this variable. > 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. That's a possible bug. Let me see. docTeX-mode is defined with (define-derived-mode docTeX-mode TeX-latex-mode "docTeX" ... in latex.el. The documentation of define-derived-mode states: The new mode runs the hook constructed by the function =E2=80=98derived-mode-hook-name=E2=80=99. which is defined as (defsubst derived-mode-hook-name (mode) "Construct a mode-hook name based on a MODE name." (intern (concat (symbol-name mode) "-hook"))) Which very much looks like it should do the job. Do you have actual evidence that it doesn't? --=20 David Kastrup From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 12 02:09:43 2016 Received: (at 24412) by debbugs.gnu.org; 12 Sep 2016 06:09:43 +0000 Received: from localhost ([127.0.0.1]:56963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjKR4-0006pe-QJ for submit@debbugs.gnu.org; Mon, 12 Sep 2016 02:09:43 -0400 Received: from mail-wm0-f47.google.com ([74.125.82.47]:37087) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjKR3-0006pQ-2g for 24412@debbugs.gnu.org; Mon, 12 Sep 2016 02:09:41 -0400 Received: by mail-wm0-f47.google.com with SMTP id c131so39247897wmh.0 for <24412@debbugs.gnu.org>; Sun, 11 Sep 2016 23:09:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:mime-version:content-transfer-encoding:message-id:date:from :to:cc:subject:in-reply-to:references:reply-to; bh=tnRbPnPt+4awXSKraYpQZGchvgbZ209ubUxoqGLWnvQ=; b=bB2cy7Ns9FnCQC5Rk9/45L7OxuNWrfxunh39neHH2LDm/3z6OB/vi2Ny4YkjpPRgcj Mcb6ufRlPrt96E+xNU5PoU0Y2pnRUJrcmiy3TXhUxcS863czdhVBEwybVU0dQp3dVi1/ 0oNA7hsZBg7omswYOSv/W7DBrjfFe+Y61GKOw7o3JOJ9EaBgYzbtyuzY80rfnl4XpA6A +hsULlRed/K5uSyC0Q7EnPARwORzpk9DaOR9MBt+5vXgF55ZQYzFec471OUBe9hDIufS EZVPDOmC1sjo+knfDGMJifQ/MttN3Wmwe1NIZ0xCVWkUj2bS56m7XmBZwaCjWeKm1BHJ axQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:mime-version:content-transfer-encoding :message-id:date:from:to:cc:subject:in-reply-to:references:reply-to; bh=tnRbPnPt+4awXSKraYpQZGchvgbZ209ubUxoqGLWnvQ=; b=VXhfepAV1BkPO2htfNZykpZJa84KK7kTU78XJSFpZ5+Hy4B+0lpfj+CvbkIy8ievRW mqRXGmc6p2x3L4p/CxZfIlgtZSctXfHmz99wySjyh9JUyuN0sKGf4cLFRdc+ZinLcT7c E5JQqEam3mdIn9KfK/8aUh3ovTbkwK+GUJzmUqsQnKTdxjdYnqkf6Ofm/2zT8ONwvUED WPpIV5EOjzkk346xs0NJDFmXykW8H++gWBhFwvpf890YXbe9oCBDhK4YiaKp4bGs2HOu HxwSVA/KyO6Y+TWDbhC/PtrdahC19+TFvR4qA6oxRKerQSIfkl0OqGgsI0xTcB/a5BDn kkmA== X-Gm-Message-State: AE9vXwMZl+l6VorhSknKUxb4/SL3ZDOm1etm5dRMM6ie6ooPE9ln5W2MEt2cTm4+MWJFiQ== X-Received: by 10.28.55.67 with SMTP id e64mr9533842wma.107.1473660575247; Sun, 11 Sep 2016 23:09:35 -0700 (PDT) Received: from cochabamba.vanoostrum.org ([145.132.212.31]) by smtp.gmail.com with ESMTPSA id f4sm16208180wmf.8.2016.09.11.23.09.33 (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 11 Sep 2016 23:09:34 -0700 (PDT) Received: from cochabamba.vanoostrum.org (localhost [127.0.0.1]) by cochabamba.vanoostrum.org (Postfix) with ESMTP id 1B9B238B6E11; Mon, 12 Sep 2016 08:09:31 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <22486.18074.633961.746935@cochabamba.vanoostrum.org> Date: Mon, 12 Sep 2016 08:09:30 +0200 From: Piet van Oostrum To: David Kastrup Subject: Re: bug#24412: 11.89; Wrong DocTeX-mode In-Reply-To: <87k2ei2nfb.fsf@fencepost.gnu.org> References: <22485.29947.311199.101925@cochabamba.vanoostrum.org> <87k2ei2nfb.fsf@fencepost.gnu.org> X-Mailer: VM 8.2.0b under 25.1.1 (x86_64-apple-darwin14.1.0) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 24412 Cc: 24412@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Piet van Oostrum Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) David Kastrup wrote: > Piet van Oostrum writes: >=20 > > 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 a= bove causes the standard Emacs doctex-mode to be invoked, rather than A= UCTeX's docTeX-mode. This is undesirable. > > > > The line should be: > > > > (add-to-list 'auto-mode-alist '("\\.dtx\\'" . docTeX-mode)) >=20 > Why=3F It doesn't change the other modes either. The point is that= they > are mapped to the AUCTeX modes on-demand, see >=20 >=20 > TeX-modes is a variable defined in =E2=80=98tex-site.el=E2=80=99. > Its value is > (tex-mode plain-tex-mode texinfo-mode latex-mode doctex-mode) >=20 > Documentation: > List of modes provided by AUCTeX. >=20 > This variable can=E2=80=99t be set normally; use customize for that,= or > set it with =E2=80=98TeX-modes-set=E2=80=99. >=20 > You can customize this variable. Oops! That's tricky. >=20 > > There is another thing. The documentation of docTeX-mode says: > > > > "Major mode in AUCTeX for editing .dtx files derived from `LaTeX-m= ode'. > > Runs `LaTeX-mode', sets a few variables and > > runs the hooks in `docTeX-mode-hook'." > > > > However, docTeX-mode-hook is never run. >=20 > That's a possible bug. Let me see. >=20 > docTeX-mode is defined with >=20 > (define-derived-mode docTeX-mode TeX-latex-mode "docTeX" > ... >=20 > in latex.el. The documentation of define-derived-mode states: >=20 > The new mode runs the hook constructed by the function > =E2=80=98derived-mode-hook-name=E2=80=99. >=20 > which is defined as >=20 > (defsubst derived-mode-hook-name (mode) > "Construct a mode-hook name based on a MODE name." > (intern (concat (symbol-name mode) "-hook"))) >=20 > Which very much looks like it should do the job. Do you have actual= > evidence that it doesn't=3F I had put something in docTeX-mode-hook, and I didn't see much evidence= of it happening. There was an error in it, but I did not get an error = message. However, now you told me this, I looked in *Messages* and I sa= w the message there. So it seems to work. Thanks for updating me. You are never too old to learn something new. >=20 > --=20 > David Kastrup --=20 Piet van Oostrum WWW: http://pietvanoostrum.com/ PGP key: [8DAE142BE17999C4] From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 12 04:12:30 2016 Received: (at 24412) by debbugs.gnu.org; 12 Sep 2016 08:12:31 +0000 Received: from localhost ([127.0.0.1]:56992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjMLu-0001HX-OH for submit@debbugs.gnu.org; Mon, 12 Sep 2016 04:12:30 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38407) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjMLt-0001HL-6L for 24412@debbugs.gnu.org; Mon, 12 Sep 2016 04:12:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjMLn-0002Yi-0r for 24412@debbugs.gnu.org; Mon, 12 Sep 2016 04:12:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60384 helo=lola.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjMLm-0002YH-Ma; Mon, 12 Sep 2016 04:12:22 -0400 Received: by lola.localdomain (Postfix, from userid 1000) id BFF21DF359; Mon, 12 Sep 2016 10:10:11 +0200 (CEST) From: David Kastrup To: Piet van Oostrum Subject: Re: bug#24412: 11.89; Wrong DocTeX-mode References: <22485.29947.311199.101925@cochabamba.vanoostrum.org> <87k2ei2nfb.fsf@fencepost.gnu.org> <22486.18074.633961.746935@cochabamba.vanoostrum.org> Date: Mon, 12 Sep 2016 10:10:11 +0200 In-Reply-To: <22486.18074.633961.746935@cochabamba.vanoostrum.org> (Piet van Oostrum's message of "Mon, 12 Sep 2016 08:09:30 +0200") Message-ID: <87fup535ek.fsf@fencepost.gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -7.2 (-------) X-Debbugs-Envelope-To: 24412 Cc: 24412@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.2 (-------) Piet van Oostrum writes: > David Kastrup wrote: > > > TeX-modes is a variable defined in =E2=80=98tex-site.el=E2=80=99. > > Its value is > > (tex-mode plain-tex-mode texinfo-mode latex-mode doctex-mode) > >=20 > > Documentation: > > List of modes provided by AUCTeX. > >=20 > > This variable can=E2=80=99t be set normally; use customize for that, or > > set it with =E2=80=98TeX-modes-set=E2=80=99. > >=20 > > You can customize this variable. > > Oops! That's tricky. Also necessary because if you write mode: LaTeX (or any other capitalization) in a file variable block, Emacs will invariably call latex-mode . > I had put something in docTeX-mode-hook, and I didn't see much > evidence of it happening. There was an error in it, but I did not get > an error message. However, now you told me this, I looked in > *Messages* and I saw the message there. So it seems to work. > > Thanks for updating me. You are never too old to learn something new. Well, I would not want to rule out any blunder of that kind sitting around for 10 years or so. But chances are that somebody might have caught it at some time. Don't even remember who did the original docTeX-mode (or made it useful), probably Ralf. It's quirky but pretty useful. --=20 David Kastrup From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 12 05:55:33 2016 Received: (at 24412) by debbugs.gnu.org; 12 Sep 2016 09:55:33 +0000 Received: from localhost ([127.0.0.1]:57012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjNxc-0003hv-Q1 for submit@debbugs.gnu.org; Mon, 12 Sep 2016 05:55:33 -0400 Received: from mail-wm0-f53.google.com ([74.125.82.53]:38008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjNxa-0003hh-Ak for 24412@debbugs.gnu.org; Mon, 12 Sep 2016 05:55:30 -0400 Received: by mail-wm0-f53.google.com with SMTP id 1so134777676wmz.1 for <24412@debbugs.gnu.org>; Mon, 12 Sep 2016 02:55:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:mime-version:content-transfer-encoding:message-id:date:from :to:cc:subject:in-reply-to:references:reply-to; bh=qznVvIzOiIPJ4td6d3upEADWRvG9JZQTAsy1TRodOXQ=; b=A5kl/2UfKksOlpW5O1EqFjZi2XGAPpJ8oLJxqhUaDx68GORKD5Rs1dbs6i79LQTPhW P8Pu5ffHnz/lr2j8Yq5K0jRfFuA0W1FlFOlupqcGn+r01/CVVGFjslk5Lv+bxMdIpS1L jkOFTQMprKZk0GqNalCK2GajwWay1J3q9iUqmAf1dZRzSaRjGo8vit/hGCh5yIEwtg5/ 7zFmdCX/yEJKXLlTTzJvf/Gp/ByEAgi2Gdys2PnRvWiZ9hiloq+zftYsgKHkICBVw6IF Yc3c3gzouQ7OgL7xlPwVJX3GxSxPMGLqqqTTdy2+2HI5QsQYljud5n3d3OnZ9JvwpoJd uLWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:mime-version:content-transfer-encoding :message-id:date:from:to:cc:subject:in-reply-to:references:reply-to; bh=qznVvIzOiIPJ4td6d3upEADWRvG9JZQTAsy1TRodOXQ=; b=fELDCQCMqIqzjFVNFT+EDrwKQqmiWco5Tb3nfWdFwiJ5N/jhIhgsIwHrdUmNlIvIKb vFHpaM7bSwqelknCpqG/YM9GBba6ghy98f/N5UuOuy3Ge4wqVPjAM62A5sQd552EX/Cn Dc5H93tsYSnI9iiClcY+QfWQD8DFJ6OwcYvgQcSn5UmFcWyYL4/mfE/kuM1PsCy9rTne a8S40TUXsSHGgs/nyySsU3FOJNsrqVMgfmYEQfft9J7hk2CuX1Ho5vJV0nS1XLINjvuQ iH4uD0S3HSK4QXhYoXIQdkR678VLuhpSxob5g7ibBGoNnzdEaWQYBZSotojaBbPP50lQ Pi0A== X-Gm-Message-State: AE9vXwPySzjmJNTbCYfYySTAbccq0Y24uA7zQTKyhXYexadaSVJvKUIpb41xWYkeYYvRWQ== X-Received: by 10.28.169.23 with SMTP id s23mr3030423wme.87.1473674124573; Mon, 12 Sep 2016 02:55:24 -0700 (PDT) Received: from cochabamba.vanoostrum.org ([145.132.212.31]) by smtp.gmail.com with ESMTPSA id i131sm11680001wmg.10.2016.09.12.02.55.23 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 12 Sep 2016 02:55:23 -0700 (PDT) Received: from cochabamba.vanoostrum.org (localhost [127.0.0.1]) by cochabamba.vanoostrum.org (Postfix) with ESMTP id 721F838B9003; Mon, 12 Sep 2016 11:55:21 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <22486.31623.898732.887886@cochabamba.vanoostrum.org> Date: Mon, 12 Sep 2016 11:55:19 +0200 From: Piet van Oostrum To: David Kastrup Subject: Re: bug#24412: 11.89; Wrong DocTeX-mode In-Reply-To: <87fup535ek.fsf@fencepost.gnu.org> References: <22485.29947.311199.101925@cochabamba.vanoostrum.org> <87k2ei2nfb.fsf@fencepost.gnu.org> <22486.18074.633961.746935@cochabamba.vanoostrum.org> <87fup535ek.fsf@fencepost.gnu.org> X-Mailer: VM 8.2.0b under 25.1.1 (x86_64-apple-darwin14.1.0) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 24412 Cc: 24412@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Piet van Oostrum Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) David Kastrup wrote: [...] > Also necessary because if you write >=20 > mode: LaTeX >=20 > (or any other capitalization) in a file variable block, Emacs will > invariably call latex-mode . >=20 I didn't realize that. Not nice. > > I had put something in docTeX-mode-hook, and I didn't see much > > evidence of it happening. There was an error in it, but I did not = get > > an error message. However, now you told me this, I looked in > > *Messages* and I saw the message there. So it seems to work. > > > > Thanks for updating me. You are never too old to learn something n= ew. >=20 > Well, I would not want to rule out any blunder of that kind sitting > around for 10 years or so. But chances are that somebody might have= > caught it at some time. Don't even remember who did the original > docTeX-mode (or made it useful), probably Ralf. It's quirky but pre= tty > useful. I was tricked into thinking this, because I did C-h m in a dtx buffer, = and then clicked on doctex-mode.el there (docTeX/FPS mode defined in =E2= =80=98tex-mode.el=E2=80=99) and came in the standard TeX mode to my sur= prise. I just overlooked the :override advice: =E2=80=98TeX-doctex-mode= =E2=80=99. But maybe you can answer another question. I want newline in a dtx buffer to automatically insert the % at the beg= inning of the line. You have to set TeX-newline-function to an appropri= ate value. I thought LaTeX-newline would be a good value, but that is n= ot interactive. So I ended up with: (setq TeX-newline-function #'(lambda () (interactive) (LaTeX-newline)))= Is there a better way=3F Or would I rather request LaTeX-newline to be = made interactive=3F With kind regards, --=20 Piet van Oostrum WWW: http://pietvanoostrum.com/ PGP key: [8DAE142BE17999C4] From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 20 14:24:36 2017 Received: (at 24412) by debbugs.gnu.org; 20 Jan 2017 19:24:36 +0000 Received: from localhost ([127.0.0.1]:36624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUenc-0006Zq-1r for submit@debbugs.gnu.org; Fri, 20 Jan 2017 14:24:36 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35240) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUena-0006Ze-Bc for 24412@debbugs.gnu.org; Fri, 20 Jan 2017 14:24:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cUenS-00055x-0K for 24412@debbugs.gnu.org; Fri, 20 Jan 2017 14:24:29 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_50, RCVD_IN_SORBS_SPAM, RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUenR-00055f-Sn for 24412@debbugs.gnu.org; Fri, 20 Jan 2017 14:24:25 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:35073) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1cUenR-0004TC-AR for 24412@debbugs.gnu.org; Fri, 20 Jan 2017 14:24:25 -0500 Received: by mail-wm0-f54.google.com with SMTP id r126so50927851wmr.0 for <24412@debbugs.gnu.org>; Fri, 20 Jan 2017 11:24:25 -0800 (PST) X-Gm-Message-State: AIkVDXJpNyq5snoroQSEU1Ryxh4ah7gbVtmfR991HUvOocOH2j51nGa+LEBa9DsyouVh4EpWBi/yz9uWH5TQVw== X-Received: by 10.28.167.204 with SMTP id q195mr4423328wme.19.1484940264349; Fri, 20 Jan 2017 11:24:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.198.194 with HTTP; Fri, 20 Jan 2017 11:23:43 -0800 (PST) In-Reply-To: <22486.31623.898732.887886@cochabamba.vanoostrum.org> References: <22485.29947.311199.101925@cochabamba.vanoostrum.org> <87k2ei2nfb.fsf@fencepost.gnu.org> <22486.18074.633961.746935@cochabamba.vanoostrum.org> <87fup535ek.fsf@fencepost.gnu.org> <22486.31623.898732.887886@cochabamba.vanoostrum.org> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Fri, 20 Jan 2017 20:23:43 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bug#24412: 11.89; Wrong DocTeX-mode To: Piet van Oostrum Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -7.7 (-------) X-Debbugs-Envelope-To: 24412 Cc: 24412@debbugs.gnu.org, David Kastrup X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.7 (-------) Hi Piet, 2016-09-12 11:55 GMT+02:00 Piet van Oostrum : > I want newline in a dtx buffer to automatically insert the % at the begin= ning of the line. You have to set TeX-newline-function to an appropriate va= lue. I thought LaTeX-newline would be a good value, but that is not interac= tive. So I ended up with: > (setq TeX-newline-function #'(lambda () (interactive) (LaTeX-newline))) > > Is there a better way? Or would I rather request LaTeX-newline to be made= interactive? I made `LaTeX-newline' interactive. Can this ticket be closed now? Bye, Mos=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Mon May 30 06:13:00 2022 Received: (at 24412-done) by debbugs.gnu.org; 30 May 2022 10:13:00 +0000 Received: from localhost ([127.0.0.1]:42833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nvcOS-0007aO-E2 for submit@debbugs.gnu.org; Mon, 30 May 2022 06:13:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nvcOQ-0007aB-JO for 24412-done@debbugs.gnu.org; Mon, 30 May 2022 06:12:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34506) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvcOK-0001mt-G1; Mon, 30 May 2022 06:12:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=Jux+achPPCHptQFleNsXWvM/do3p8VytnFU54q9wvyU=; b=cFt4bGkojwz6+Yfj88BM cgZRg3qfNfM1MwC+YgVaknZBCjsul1P8Uq1Gzk/tY+Yi8TphXfWwDTkpXtnQgCNEAVHK0zV5p7uRq nTYVaOH927/K6x+nCKuxoC1ZufmRkqlrQumhB3H2R0JJnNOcu3aHECjUXV81dwiQQPLQ2/27zakbV 2hGgor0bWip24LcoocdBScJvPETXj4IHY2NPtXtrHHe/3lC5klQdsnEHue71KnOcYJ+XOqvvEx+0f 9pugO0I6O4PHGHrXynQp99QlE+zMoo8GFkjffLvkyU8x+q3vXgf5aDEqiJJ6dux2hmPVMM8SBZloc /IL3s89IkrFdgQ==; Received: from p4fe3ee56.dip0.t-ipconnect.de ([79.227.238.86]:65244 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvcOF-0001FU-Nk; Mon, 30 May 2022 06:12:49 -0400 From: Arash Esbati To: =?iso-8859-1?Q?Mos=E8?= Giordano Subject: Re: bug#24412: 11.89; Wrong DocTeX-mode References: <22485.29947.311199.101925@cochabamba.vanoostrum.org> <87k2ei2nfb.fsf@fencepost.gnu.org> <22486.18074.633961.746935@cochabamba.vanoostrum.org> <87fup535ek.fsf@fencepost.gnu.org> <22486.31623.898732.887886@cochabamba.vanoostrum.org> Date: Mon, 30 May 2022 12:12:37 +0200 In-Reply-To: (=?iso-8859-1?Q?=22Mos=E8?= Giordano"'s message of "Fri, 20 Jan 2017 20:23:43 +0100") Message-ID: <86bkvfxrai.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 24412-done Cc: 24412-done@debbugs.gnu.org, Piet van Oostrum X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi all, Mos=E8 Giordano 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 From unknown Sun Jun 22 11:32:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 27 Jun 2022 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator