From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: zeb7k@hotmail.com Newsgroups: gmane.emacs.help Subject: Re: glitch when printing from Win 7 Date: Thu, 11 Jul 2013 04:12:25 -0700 (PDT) Message-ID: <62b05b4a-377d-4320-82ae-ced020eef894@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1373541316 14857 80.91.229.3 (11 Jul 2013 11:15:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Jul 2013 11:15:16 +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 13:15:18 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 1UxEqD-0004sa-CG for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Jul 2013 13:15:17 +0200 Original-Received: from localhost ([::1]:58677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxEqC-0002va-RB for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Jul 2013 07:15:16 -0400 X-Received: by 10.224.40.65 with SMTP id j1mr17557831qae.7.1373541145882; Thu, 11 Jul 2013 04:12:25 -0700 (PDT) X-Received: by 10.49.120.67 with SMTP id la3mr1081223qeb.35.1373541145860; Thu, 11 Jul 2013 04:12:25 -0700 (PDT) Original-Path: usenet.stanford.edu!t19no1109676qam.0!news-out.google.com!f7ni2066qai.0!nntp.google.com!t19no1174865qam.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=208.104.132.158; posting-account=UUxbJgoAAACQrRKBDw5BbyIup_QnHRQN Original-NNTP-Posting-Host: 208.104.132.158 User-Agent: G2/1.0 Injection-Date: Thu, 11 Jul 2013 11:12:25 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:199783 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:92050 Archived-At: It finally happened again. 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?