From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Patch for tex-mode.el (more compatibility with AUCTeX)
Date: Mon, 29 Nov 2004 01:11:12 -0500 [thread overview]
Message-ID: <E1CYeki-0002Cr-Q0@fencepost.gnu.org> (raw)
In-Reply-To: <200411272340.iARNec4N006202@haifa.math.ias.edu> (message from Markus Rost on Sat, 27 Nov 2004 18:40:38 -0500)
Wouldn't this patch be a more natural way to handle TeX-master = t?
*** tex-mode.el 26 Oct 2004 04:21:48 -0400 1.150
--- tex-mode.el 28 Nov 2004 16:19:05 -0500
***************
*** 1693,1701 ****
(let* ((file (or tex-main-file
;; Compatibility with AUCTeX.
(with-no-warnings
! (when (and (boundp 'TeX-master) (stringp TeX-master))
! (make-local-variable 'tex-main-file)
! (setq tex-main-file TeX-master)))
;; Try to guess the main file.
(if (not buffer-file-name)
(error "Buffer is not associated with any file")
--- 1693,1705 ----
(let* ((file (or tex-main-file
;; Compatibility with AUCTeX.
(with-no-warnings
! (when (boundp 'TeX-master)
! (if (stringp TeX-master)
! (progn
! (make-local-variable 'tex-main-file)
! (setq tex-main-file TeX-master))
! (when (eq TeX-master t)
! (file-relative-name buffer-file-name)))))
;; Try to guess the main file.
(if (not buffer-file-name)
(error "Buffer is not associated with any file")
next prev parent reply other threads:[~2004-11-29 6:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-27 23:40 Patch for tex-mode.el (more compatibility with AUCTeX) Markus Rost
2004-11-28 11:47 ` David Kastrup
2004-11-29 6:11 ` Richard Stallman [this message]
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=E1CYeki-0002Cr-Q0@fencepost.gnu.org \
--to=rms@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).