unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "T.V Raman" <raman@google.com>
To: arash@gnu.org
Cc: raman@google.com, angelo.g0@libero.it, emacs-devel@gnu.org
Subject: Re: About LaTeX/TeX modes
Date: Mon, 8 Aug 2022 06:56:48 -0700	[thread overview]
Message-ID: <25329.5664.292702.538737@retriever.mtv.corp.google.com> (raw)
In-Reply-To: <86mtcfdfeh.fsf@gnu.org>


Could you say where/how you configured auctex to do the auto-insertion
 of the mode setting?Arash Esbati writes:
 > "T.V Raman" <raman@google.com> writes:
 > 
 > > Not quite.
 > > Getting auctex-mode defined modes to become operational feels more
 > > complex than it needs to be
 > 
 > For me, AUCTeX always inserts the mode into the local variables block
 > when I open a new file like:
 > 
 >   %%% Local Variables:
 >   %%% mode: latex
 >   %%% TeX-master: t
 >   %%% End:
 > 
 > or
 > 
 >   %%% Local Variables:
 >   %%% mode: latex
 >   %%% TeX-master: "other-tex-file"
 >   %%% End:
 > 
 > so the complexity behind the scenes shouldn't be visible to the users.
 > 
 > > and I've never understood (30+ years and counting) as to why Emacs
 > > hasn't yet just made Auctex the default Tex editing package for emacs;
 > > I note that we have adopted far newer packages as the default in more
 > > recent times.
 > 
 > Getting AUCTeX into Emacs is still a mission statement in the RELEASE
 > file[1] which says:
 > 
 >   Future development and additional information
 >   ---------------------------------------------
 > 
 >   AUCTeX is proceeding as a GNU project with the long-term intent of
 >   merging it into Emacs.  For that reason, all new contributors need to
 >   assign copyright to their contributions to the FSF (the usual
 >   procedure for Emacs contributors).
 > 
 > My personal view on this is that ELPA works fine for AUCTeX and the goal
 > above isn't high on the todo list anymore.
 > 
 > > Many years ago I made the following my default first line in .tex files:
 > >
 > > % foo.tex: -*- mode: LaTeX -*-
 > >
 > > and it works as in gets the mode from auctex -- but asking 
 > > describe-function about the mode still shows the one from the emacs
 > > install, not from auctex.
 > >
 > > latex-mode is defaliased to 
 > > LaTeX-mode in tex-mode.el
 > > Library is file
 > > /usr/local/share/emacs/29.0.50/lisp/textmodes/tex-mode.elc
 > 
 > See above, a prop-line shouldn't be needed.  But yes, AUCTeX loads
 > tex-mode.el and builds its functionality on top of it.
 > 
 > As a side note: I think tex-mode.el has still a user base, so replacing
 > it maybe upset some people.
 > 
 > Best, Arash
 > 
 > Footnotes:
 > [1]  http://git.savannah.gnu.org/cgit/auctex.git/tree/RELEASE#n194

-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1  🦮

--

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1  🦮



  reply	other threads:[~2022-08-08 13:56 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-07  9:03 About LaTeX/TeX modes Angelo Graziosi
2022-08-07 11:11 ` Arash Esbati
2022-08-07 12:32   ` Angelo Graziosi
2022-08-07 13:31   ` T.V Raman
2022-08-07 19:25     ` Arash Esbati
2022-08-08 13:56       ` T.V Raman [this message]
2022-08-08 14:29         ` Arash Esbati
2022-08-08 15:32           ` T.V Raman
2022-08-09 10:53             ` Per Starbäck
2022-08-09 11:47               ` Stefan Kangas
2022-08-09 14:01               ` T.V Raman
2022-08-09 20:41               ` Matthias Meulien
2022-08-10 17:07                 ` Tassilo Horn
2022-08-09 14:50             ` Angelo Graziosi
2022-08-10 23:47             ` Angelo Graziosi

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=25329.5664.292702.538737@retriever.mtv.corp.google.com \
    --to=raman@google.com \
    --cc=angelo.g0@libero.it \
    --cc=arash@gnu.org \
    --cc=emacs-devel@gnu.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).