From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: ferhun_caner@yahoo.com (Dr. F.C.Caner) Newsgroups: gmane.emacs.help Subject: Re: File variables in tex-site.el Date: 7 May 2003 23:00:08 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <65fef11f.0305072200.67fa6422@posting.google.com> References: <65fef11f.0305010200.54e2d8f2@posting.google.com> <65fef11f.0305050036.27ae8d34@posting.google.com> <65fef11f.0305052141.298c20fe@posting.google.com> <65fef11f.0305070328.310a4f69@posting.google.com> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1052373685 12871 80.91.224.249 (8 May 2003 06:01:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 8 May 2003 06:01:25 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 08 08:01:24 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19DeSY-0003KM-00 for ; Thu, 08 May 2003 08:00:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19DeSa-0003UC-01 for gnu-help-gnu-emacs@m.gmane.org; Thu, 08 May 2003 02:00:52 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 43 Original-NNTP-Posting-Host: 194.27.206.47 Original-X-Trace: posting.google.com 1052373608 25467 127.0.0.1 (8 May 2003 06:00:08 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 8 May 2003 06:00:08 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:112931 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9426 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9426 Yes, I encountered the same problem. The crudest way of solving it is to insert (sleep-for 10) right before (acrobat-open-doc file). This would delay the execution of acrobat-open-doc for 10 seconds, by which time LaTeXing the document would be done already. There must be a smarter way to do this, like using the variable compilation-in-process. That I should find out :). Best, FCC. Matthias Rempe wrote in message news:... > >>>>> "FFC" == F C Caner writes: > > > In the subsequent compilations the Reader will > > automatically redisplay the resulting pdf file (like the dvi > > viewers). > > Sounds good. However, I only get a message "file not found" from > Acrobat Reader. It seems to me that acrobat-open-doc needs to wait > until TeX-run-LaTeX is finished and actually does not do it. Any > hints? > > > Versions: > Acrobat Reader: 5.1.0 17.09.2002 > Emacs: GNU Emacs 21.3.50.1 (i386-mingw-nt5.0.2195) > of 2003-03-31 on ISMN3677 > Windows: Win2K > > ,---- > | (defun TeX-run-pdfLaTeX (name command file) > | "Create a process for NAME using COMMAND to format FILE with pdfLaTeX." > | (acrobat-close-all-docs) > | (TeX-run-LaTeX name command file) > | ;; (acrobat-open-doc file) > | ) > `----