From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Patch for tex-mode.el (more compatibility with AUCTeX) Date: Mon, 29 Nov 2004 01:11:12 -0500 Message-ID: References: <200411272340.iARNec4N006202@haifa.math.ias.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1101708853 5745 80.91.229.6 (29 Nov 2004 06:14:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Nov 2004 06:14:13 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 29 07:14:08 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CYenX-0007cW-00 for ; Mon, 29 Nov 2004 07:14:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CYewv-0003ti-0C for ged-emacs-devel@m.gmane.org; Mon, 29 Nov 2004 01:23:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CYewb-0003tB-W6 for emacs-devel@gnu.org; Mon, 29 Nov 2004 01:23:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CYewb-0003sm-4g for emacs-devel@gnu.org; Mon, 29 Nov 2004 01:23:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CYewa-0003sj-Sd for emacs-devel@gnu.org; Mon, 29 Nov 2004 01:23:29 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CYen9-0008L0-0C for emacs-devel@gnu.org; Mon, 29 Nov 2004 01:13:43 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1CYeki-0002Cr-Q0; Mon, 29 Nov 2004 01:11:12 -0500 Original-To: Markus Rost In-reply-to: <200411272340.iARNec4N006202@haifa.math.ias.edu> (message from Markus Rost on Sat, 27 Nov 2004 18:40:38 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:30471 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30471 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")