From mboxrd@z Thu Jan 1 00:00:00 1970
Path: main.gmane.org!not-for-mail
From: Paolo Martini
Newsgroups: gmane.emacs.bugs
Subject: [Windows] tex-mode: Emacs+ MiKTeX
Date: Fri, 15 Oct 2004 18:07:44 +0200
Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org
Message-ID: <416FF5D0.90406@neuralnoise.com>
NNTP-Posting-Host: deer.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: sea.gmane.org 1097856589 27288 80.91.229.6 (15 Oct 2004 16:09:49 GMT)
X-Complaints-To: usenet@sea.gmane.org
NNTP-Posting-Date: Fri, 15 Oct 2004 16:09:49 +0000 (UTC)
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 15 18:09:33 2004
Return-path:
Original-Received: from lists.gnu.org ([199.232.76.165])
by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian))
id 1CIUe4-0004Mh-00
for ; Fri, 15 Oct 2004 18:09:32 +0200
Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org)
by lists.gnu.org with esmtp (Exim 4.33)
id 1CIUlD-00012p-WB
for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Oct 2004 12:16:56 -0400
Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33)
id 1CIUl9-00012d-FW
for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2004 12:16:53 -0400
Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33)
id 1CIUl8-00012C-Mt
for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2004 12:16:50 -0400
Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org)
by lists.gnu.org with esmtp (Exim 4.33) id 1CIUl8-000129-Kp
for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2004 12:16:50 -0400
Original-Received: from [195.62.234.69] (helo=mail.nectarine.info)
by monty-python.gnu.org with esmtp (Exim 4.34) id 1CIUci-0002as-Pa
for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2004 12:08:09 -0400
Original-Received: by mail.nectarine.info (Postfix, from userid 1014)
id 29829708121; Fri, 15 Oct 2004 18:08:00 +0200 (CEST)
Original-Received: from [192.168.1.34] (adsl-125-166.37-151.net24.it
[151.37.166.125])by mail.nectarine.info (Postfix) with ESMTP id
B2C54708003for ;
Fri, 15 Oct 2004 18:07:59 +0200 (CEST)
User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913)
X-Accept-Language: en-us, en
Original-To: bug-gnu-emacs@gnu.org
X-Enigmail-Version: 0.86.1.0
X-Enigmail-Supports: pgp-inline, pgp-mime
X-BeenThere: bug-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Bug reports for GNU Emacs,
the Swiss army knife of text editors"
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org
Xref: main.gmane.org gmane.emacs.bugs:9326
X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:9326
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I found a problem of interoperability between emacs's tex-mode and
MiKTeX's DVI viewer, but i think it's applicable to other applications
called from emacs as well.
1) Set tex-dvi-view-command to "C:\path\to\miktex\bin\yap.exe"
2) Create a .tex file and save it in a path containing spaces (e.g.
C:\Documents and Settings\User\Documents\foobar.tex)
3) C-c C-f (TeX File)
4) C-c C-v (TeX View)
the tex-shell tells that emacs is calling something like:
C:\MiKTeX\Main\miktex\bin\yap.exe c:/Documents and
Settings/Paolo/Documenti/Chimica/esp1.dvi&
that is wrong, it should call yap this way:
C:\MiKTeX\Main\miktex\bin\yap.exe "c:\Documents and
Settings\Paolo\Documenti\Chimica\esp1.dvi"&
I made a simple workaround:
(defun tex-send-command (command &optional file background)
~ "Send COMMAND to TeX shell process, substituting optional FILE for *.
Do this in background if optional BACKGROUND is t. If COMMAND has no *,
FILE will be appended, preceded by a blank, to COMMAND. If FILE is nil, no
substitution will be made in COMMAND. COMMAND can be any expression that
evaluates to a command string.
Return the process in which TeX is running."
~ (when file
~ (setf file (shell-quote-argument (substitute ?\\ ?/ file))))
~ ..snip..
It's incomplete, but it works on my system, maybe it would be ok to have
an auto-quoting tex-send-command function that understands how to di it
by itself, but i don't know elisp and i cannot do it and propose.
Regards, Paolo.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBb/XQhW78UdvgTikRApe8AJwNyDjapcJvo0Y8JXMy2/RYozAUjwCfXTdz
rd9UYoaHGqcm78MpaeHyMrQ=
=qn/e
-----END PGP SIGNATURE-----
--------------------------------------------------------------------
L'utente che ti ha inviato questa email ha a disposizione:
Spazio illimitato, Webmail, accesso Imap, Pop3 e Smtp,
4 differenti domini email, protezione antispam e filtro mime,
dimensione massima allegati 200mb.
Tutto totalmente gratuito, la tua email ha queste funzionalitą ?
Puoi registrarti all'indirizzo: http://www.nectarine.it
Questo messaggio pubblicitario viene aggiunto in maniera
automatica, segnalazione abusi: support@nectarine.info
--------------------------------------------------------------------