[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tex-shell: file names quoted twice

From: Frederik Fouvry
Subject: tex-shell: file names quoted twice
Date: Wed, 18 May 2005 17:22:43 +0200 (CEST)


[=f76 is an o with an umlaut]

emacs -q ~/address@hidden/paper.tex (or ~/address@hidden/paper.tex)
C-c C-f (= M-x tex-file)
C-c C-v (= M-x tex-view)

In the *tex-shell* appears:

$ xdvi /home/fouvry/address@hidden/paper.dvi&
[1] 22004
$ file:/home/fouvry/address@hidden/paper.dvi: No such file or directory

The reason is that the file names are quoted twice before being sent
to the shell: once by tex-print and once by tex-send-command.  Since
tex-print calls tex-send-command, the call to shell-quote-argument in
tex-print can be removed.

RCS file: /cvsroot/emacs/emacs/lisp/textmodes/tex-mode.el,v
retrieving revision 1.162
diff -c -r1.162 tex-mode.el
*** lisp/textmodes/tex-mode.el  23 Apr 2005 16:45:07 -0000      1.162
--- lisp/textmodes/tex-mode.el  18 May 2005 15:18:48 -0000
*** 2227,2234 ****
         (if alt tex-alt-dvi-print-command tex-dvi-print-command)
!        (shell-quote-argument
!       print-file-name-dvi)
  (defun tex-alt-print ()
--- 2227,2233 ----
         (if alt tex-alt-dvi-print-command tex-dvi-print-command)
!       print-file-name-dvi
  (defun tex-alt-print ()

In GNU Emacs (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2005-05-18 on cc.at.coli.uni-sb.de
Distributor `The XFree86 Project, Inc', version 11.0.40201000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: POSIX
  value of $LC_CTYPE: en_GB.ISO8859-15
  value of $LC_MESSAGES: en_GB.ISO8859-15
  value of $LC_MONETARY: address@hidden
  value of $LC_NUMERIC: en_GB.ISO8859-15
  value of $LC_TIME: en_GB.ISO8859-15
  value of $LANG: en_GB.ISO8859-15
  locale-coding-system: iso-8859-15
  default-enable-multibyte-characters: t

Major mode: LaTeX

Minor modes in effect:
  mouse-wheel-mode: t
  tooltip-mode: t
  auto-compression-mode: t
  menu-bar-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  line-number-mode: t
  next-error-follow-minor-mode:  Fol

Recent input:
<down-mouse-1> <mouse-1> <escape> < C-c C-v <down> 
C-c C-f C-c C-v <down-mouse-1> <mouse-1> <f8> <help-echo> 
<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu> 

Recent messages:
Loading image...done
For information about the GNU Project and its goals, type C-h C-p.
Loading latexenc...done
Loading tex-mode...
Loading regexp-opt...done
Loading tex-mode...done
Mark set
Loading font-lock...done
(No files need saving)
Loading emacsbug...done

reply via email to

[Prev in Thread] Current Thread [Next in Thread]