From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mikhail Gusarov Newsgroups: gmane.emacs.bugs Subject: [TeX mode] wrong default 'TeX Dvi View Command' Date: Sun, 10 Oct 2004 21:46:10 +0700 Organization: SWsoft, Inc. Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87k6tyws0d.fsf@vertex.plesk.ru> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1097419664 15775 80.91.229.6 (10 Oct 2004 14:47:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 10 Oct 2004 14:47:44 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 10 16:47:35 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 1CGez1-0007Mo-00 for ; Sun, 10 Oct 2004 16:47:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CGf5u-000572-FM for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Oct 2004 10:54:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CGf5r-00055w-NM for bug-gnu-emacs@gnu.org; Sun, 10 Oct 2004 10:54:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CGf5r-00055M-6l for bug-gnu-emacs@gnu.org; Sun, 10 Oct 2004 10:54:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CGf5r-000550-24 for bug-gnu-emacs@gnu.org; Sun, 10 Oct 2004 10:54:39 -0400 Original-Received: from [193.124.215.76] (helo=hermes.nsu.ru) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CGeyT-0007qB-Fr for bug-gnu-emacs@gnu.org; Sun, 10 Oct 2004 10:47:01 -0400 Original-Received: from [217.8.228.215] (account dottedmag@gorodok.net HELO vertex.plesk.ru) by hermes.nsu.ru (CommuniGate Pro SMTP 4.2) with ESMTP id 16664907 for bug-gnu-emacs@gnu.org; Sun, 10 Oct 2004 21:46:46 +0700 Original-To: bug-gnu-emacs@gnu.org User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) 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:9256 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:9256 By default TeX DVI view command is 'FILE=`echo * | cut -d. -f1`; dvips -o $FILE.ps $FILE; ps2pdf $FILE.ps; gv $FILE.pdf', but getting the FILE value does not work well with files containing more than one dot in the full path. It should be replaced with the other one, like FILE=`echo * | perl -pe 's/\.dvi$//'`. If the dependency to the perl is not acceptable, try to find the analog :) -- Mikhail Gusarov Plesk Migration/Expand Dept. Developer SWsoft, Inc. http://www.sw-soft.com ICQ# 111575219