From: Markus Rost <rost@ias.edu>
Subject: Patch for tex-mode.el (more compatibility with AUCTeX)
Date: Sat, 27 Nov 2004 18:40:38 -0500 [thread overview]
Message-ID: <200411272340.iARNec4N006202@haifa.math.ias.edu> (raw)
Currently tex-mode supports the variable TeX-master (from AUCTeX) if
it is a string. See lines 1694-1698 in tex-mode.el. I suggest to
support the variable TeX-master also if it is set to 't. In that case
the "master" of the file is the file itself, so the right thing is to
run TeX on the buffer's file. What about the following patch for
tex-mode.el? Stefan?
I have a bunch of old .tex files which have Local Variable sections
created by AUCTeX. The patch would make tex-mode handle those files
better.
* textmodes/tex-mode.el (tex-main-file): Add a compatibility with
AUCTeX.
===Buffer *vc-diff*=========================================
*** tex-mode.el.~1.150.~ Mon Oct 25 16:35:24 2004
--- tex-mode.el Sat Nov 27 18:20:28 2004
***************
*** 1700,1709 ****
(if (not buffer-file-name)
(error "Buffer is not associated with any file")
(file-relative-name
! (if (save-excursion
! (goto-char (point-min))
! (re-search-forward tex-start-of-header
! (+ (point) 10000) t))
;; This is the main file.
buffer-file-name
;; This isn't the main file, let's try to find better,
--- 1700,1713 ----
(if (not buffer-file-name)
(error "Buffer is not associated with any file")
(file-relative-name
! (if (or
! ;; Compatibility with AUCTeX.
! (with-no-warnings
! (and (boundp 'TeX-master) (eq TeX-master t)))
! (save-excursion
! (goto-char (point-min))
! (re-search-forward tex-start-of-header
! (+ (point) 10000) t)))
;; This is the main file.
buffer-file-name
;; This isn't the main file, let's try to find better,
============================================================
next reply other threads:[~2004-11-27 23:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-27 23:40 Markus Rost [this message]
2004-11-28 11:47 ` Patch for tex-mode.el (more compatibility with AUCTeX) David Kastrup
2004-11-29 6:11 ` Richard Stallman
2004-11-29 21:08 ` Markus Rost
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=200411272340.iARNec4N006202@haifa.math.ias.edu \
--to=rost@ias.edu \
/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).