From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: karl@freefriends.org (Karl Berry) Newsgroups: gmane.emacs.devel Subject: Re: TeX called improperly Date: Sat, 20 Apr 2002 13:42:36 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200204201742.g3KHgal10077@f7.net> NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1019324727 26040 127.0.0.1 (20 Apr 2002 17:45:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 20 Apr 2002 17:45:27 +0000 (UTC) Cc: steve@doodlebeth.com, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16yyvP-0006lt-00 for ; Sat, 20 Apr 2002 19:45:27 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16yzFL-00046L-00 for ; Sat, 20 Apr 2002 20:06:03 +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 16yyvD-0000rI-00; Sat, 20 Apr 2002 13:45:15 -0400 Original-Received: from consort.superb.net ([209.61.216.22] helo=f7.net) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16yysf-0000mP-00; Sat, 20 Apr 2002 13:42:37 -0400 Original-Received: (from karl@localhost) by f7.net (8.11.6/8.11.6) id g3KHgal10077; Sat, 20 Apr 2002 13:42:36 -0400 Original-To: rms@gnu.org Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2861 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2861 What do you think is the right solution, the right way to handle tex-start-options-string? To expand a little ... Looking at the original bug report again, I see the problem was the quotes, right? So Emacs should strip off the quotes before sending it to tex, so the multiple options come through as multiple options. I'm surprised that this does not happen at a lower level actually, since I thought all those quotes mean is that the Local Variables: value is a string constant. Perhaps Emacs is adding its own quotes back to the command, so that the local var could be set to a value like "\\nonstopmode\\input foo" and this would get passed on the command line as '\nonstopmode\input foo'. Unfortunately that won't work in the presence of multiple options, so all I can suggest is for Emacs not to be so smart, and just pass the value it is given. It'll have to be up to the user to put in the right number of backslashes (four, I guess). Or if there is too problematic for compatibility, I guess another variable could be introduced. (tex-start-options-no-implicit-quoting) Hope this helps, k