From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: glitch when printing from Win 7 Date: Thu, 11 Jul 2013 20:02:02 +0300 Message-ID: <8338rluj1x.fsf@gnu.org> References: <62b05b4a-377d-4320-82ae-ced020eef894@googlegroups.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1373567522 30924 80.91.229.3 (11 Jul 2013 18:32:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Jul 2013 18:32:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 11 20:32:03 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UxLes-0007fi-VV for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Jul 2013 20:32:03 +0200 Original-Received: from localhost ([::1]:35524 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxKMG-0000jM-FJ for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Jul 2013 13:08:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxKGQ-0002xQ-4S for help-gnu-emacs@gnu.org; Thu, 11 Jul 2013 13:02:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UxKGP-0001wh-23 for help-gnu-emacs@gnu.org; Thu, 11 Jul 2013 13:02:42 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:40540) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxKGO-0001wb-R0 for help-gnu-emacs@gnu.org; Thu, 11 Jul 2013 13:02:41 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MPS00800777NJ00@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Thu, 11 Jul 2013 20:02:09 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MPS008TI7BLF680@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Thu, 11 Jul 2013 20:02:09 +0300 (IDT) In-reply-to: <62b05b4a-377d-4320-82ae-ced020eef894@googlegroups.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92062 Archived-At: > Date: Thu, 11 Jul 2013 04:12:25 -0700 (PDT) > From: zeb7k@hotmail.com > > Here are the pertinent commands in my .EMACS startup file: > > (setq lpr-command "P:/PrintFile/PrintFile.bat") > (setq printer-name nil) > (setq lpr-headers-switches "/p") > > Here is the batch file PrintFile.bat: > > echo appdrive is %APPDRIVE% > x:\PrintTrace.log > echo 1 is %1 >> x:\PrintTrace.log > echo 2 is %2 >> x:\PrintTrace.log > regedit.exe /s %APPDRIVE%:\PrintFile\NotePad.reg > NotePad.exe %1 %2 > > (Sometimes I adjust the font in Notepad and forget to switch it back. The regedit command simply makes sure Notepad.exe is working with the same font size I always use for printing.) > > Here is the contents of PrintTrace.log as viewed in fundamental mode: > > appdrive is P > 1 is /p > 2 is \213\257\250t:\Temp\EP4252h0o > > Note the three octal characters in front of the file name. This is what's gumming things up. Why is this happening? Which version of Emacs is that? And what is the value of buffer-file-coding-system in the buffer which you tried to print?