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: 5 May 2003 01:36:03 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <65fef11f.0305050036.27ae8d34@posting.google.com> References: <65fef11f.0305010200.54e2d8f2@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 1052124394 17771 80.91.224.249 (5 May 2003 08:46:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 5 May 2003 08:46:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon May 05 10:46:29 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 19Cbad-0004YL-00 for ; Mon, 05 May 2003 10:44: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 19CbWS-0000m9-00 for gnu-help-gnu-emacs@m.gmane.org; Mon, 05 May 2003 04:40:32 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-NNTP-Posting-Host: 194.27.206.47 Original-X-Trace: posting.google.com 1052123763 21256 127.0.0.1 (5 May 2003 08:36:03 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 5 May 2003 08:36:03 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:112780 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:9275 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9275 This is just great, but I could not get it working. I am not getting any error messages either. Actually, I cannot see any buffer named *ddeclient* at all. When I eval (acrobat-close-all-docs) in the *scratch* buffer, the function returns t and Acrobat reader does nothing. Any idea what is happening? Thanks, FCC. > The following snippets in my tex-site.el are from some posting of > Jesper Harder that I found with google: > > ,---- > | > | ;;; von Jesper Harder: > | (defun acrobat-close-all-docs () > | "Close all open documents in Acrobat." > | (save-excursion > | (set-buffer (get-buffer-create " *ddeclient*")) > | (erase-buffer) > | (insert "[CloseAllDocs()]") > | (call-process-region (point-min) (point-max) > | "ddeclient" t t nil "acroview" "control") > | (if (= 0 (string-to-int (buffer-string))) t nil))) > | > | (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)) > | > `---- > > In TeX-command-list add this entry: > > ,---- > | (list "pdfLaTeX" "pdflatex '\\nonstopmode\\input{%t}'" > | 'TeX-run-pdfLaTeX nil t) > `----