GNU bug report logs -
#24412
11.89; Wrong DocTeX-mode
Previous Next
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
View this message in rfc822 format
David Kastrup wrote:
[...]
> Also necessary because if you write
>
> mode: LaTeX
>
> (or any other capitalization) in a file variable block, Emacs will
> invariably call latex-mode .
>
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 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.
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 ‘tex-mode.el’) and came in the standard TeX mode to my surprise. I just overlooked the :override advice: ‘TeX-doctex-mode’.
But maybe you can answer another question.
I want newline in a dtx buffer to automatically insert the % at the beginning of the line. You have to set TeX-newline-function to an appropriate value. I thought LaTeX-newline would be a good value, but that is not interactive. 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?
With kind regards,
--
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.