From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wenguang Wang Newsgroups: gmane.emacs.help Subject: Re: RefTex keeps asking me which file is the Master file Date: Sun, 16 Aug 2009 00:03:18 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <175d5f36-cdb9-46af-853d-633f5bb62c61@r18g2000yqd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1250446100 20340 80.91.229.12 (16 Aug 2009 18:08:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Aug 2009 18:08:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 16 20:08:13 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mck9L-0006Cc-BH for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Aug 2009 20:08:11 +0200 Original-Received: from localhost ([127.0.0.1]:35433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mck9K-0002Xb-M2 for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Aug 2009 14:08:10 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!h21g2000yqa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 Original-NNTP-Posting-Host: 67.119.3.133 Original-X-Trace: posting.google.com 1250406198 27206 127.0.0.1 (16 Aug 2009 07:03:18 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 16 Aug 2009 07:03:18 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: h21g2000yqa.googlegroups.com; posting-host=67.119.3.133; posting-account=InAFkQkAAACPCm6VUn_I6EAHH44f35_G User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6; zh-cn) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:172015 X-Mailman-Approved-At: Sun, 16 Aug 2009 14:01:54 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67204 Archived-At: Never mind. I can do this in the .emacs file to solve it: (setq- default TeX-master "mynowebproj.mm") On 8=D4=C215=C8=D5, =C9=CF=CE=E710=CA=B150=B7=D6, Wenguang Wang wrote: > Hi, > I have a multi-file noweb project. The file type is .mm (to > workaround a problem of my IDE debugger). I have also added the > following file extensions into my .emacs file: > > (setq reftex-file-extensions > '(("mm" ".mm" "nw" "tex" ".tex") ("bib" ".bib"))) > (setq TeX-file-extensions > '( "mm" ".mm" "nw" "tex" ".tex" "sty" "cls" "ltx" "texi" > "texinfo")) > > And at the end of each file, I have: > > %%% Local Variables: > %%% mode: Noweb > %%% noweb-code-mode: c++-mode > %%% TeX-master: "mynowebproj" > %%% End: > > And in mynowebproj.mm file, the TeX-master line is: > > %%% TeX-master: t > > However, when I save these .mm files, or when I open TOC on these > files using RefTeX, it kept asking me which file is the Master file, > very annoying. > > Can anybody help me with this? > > Thanks! > > -Wenguang