From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Steve Throckmorton Newsgroups: gmane.emacs.bugs Subject: TeX called improperly Date: Mon, 15 Apr 2002 02:06:31 -0400 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1018850589 14629 127.0.0.1 (15 Apr 2002 06:03:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 15 Apr 2002 06:03:09 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16wza1-0003nq-00 for ; Mon, 15 Apr 2002 08:03:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16wza5-0006wV-00; Mon, 15 Apr 2002 02:03:13 -0400 Original-Received: from dc-mx05.cluster0.hsacorp.net ([209.225.8.15] helo=dc-mx05.cluster1.charter.net) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16wzYm-0006uc-00 for ; Mon, 15 Apr 2002 02:01:52 -0400 Original-Received: from [24.241.190.34] (HELO AMD1700) by dc-mx05.cluster1.charter.net (CommuniGate Pro SMTP 3.5.3) with ESMTP id 37014791 for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2002 02:06:31 -0400 Original-To: bug-gnu-emacs@gnu.org Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:674 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:674 This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. In GNU Emacs 21.1.1 (i386-msvc-windows98.2222) of 2001-10-22 on buffy configured using `configure --with-msvc (12.00)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: enu locale-coding-system: iso-latin-1 default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: I have encountered two separate problems calling utilities from within TeX mode. I was able to fix/workaround each with a modification to the file tex-mode.el . One problem is that attempts to call a dvi viewer were failing because emacs was appending an ampersand ('&') to the .dvi filename in a vain attempt to make Win98 run the viewer in background. I changed the function tex-print to call tex-send-command with nil (instead of t, of course) passed to the optional argument 'background'. The other problem I had was that emacs was calling tex.exe with the option string (tex-start-options-string), which I set within buffer with the Local Variables feature, in quotes (""). This caused the options to be ignored by TeX. I discovered that the function tex-start-tex was running tex-start-options-string through some function called shell-quote-argument, which caused the quotes to appear in the command line. I deleted the call to shell-quote-argument, and that seemed to fix things for me. It seems obvious to me that the first problem is Windows-specific. I have no idea about the options-string-in-quotes problem, though. Recent input: C-g C-x k M-x r e p o r t - e Recent messages: (C:\PROGRAM FILES\EMACS\EMACS-21.1\BIN\EMACS.EXE) Loading smtpmail...done Loading rmail...done Counting messages...done POP password: rmail-get-pop-password: Quit Loading emacsbug...done