From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gary Mills Newsgroups: gmane.emacs.bugs Subject: Re: print buffer produces incorrect format with emacs-22.1 and Sol 10 Date: Fri, 15 Jun 2007 21:15:26 -0500 Message-ID: <20070616021526.GA23880@cc.umanitoba.ca> References: <200706112320.l5BNKItZ005315@eltanin.cc.umanitoba.ca> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1181960151 26146 80.91.229.12 (16 Jun 2007 02:15:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 16 Jun 2007 02:15:51 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 16 04:15:42 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HzNpF-0002Uk-F0 for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Jun 2007 04:15:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzNpE-00031k-Jx for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Jun 2007 22:15:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzNpC-00031e-9J for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2007 22:15:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzNp9-00031S-Qa for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2007 22:15:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzNp9-00031P-L3 for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2007 22:15:35 -0400 Original-Received: from electra.cc.umanitoba.ca ([130.179.16.23]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HzNp8-0004Dh-Bq; Fri, 15 Jun 2007 22:15:34 -0400 Original-Received: from deneb.cc.umanitoba.ca (mills@deneb.cc.umanitoba.ca [130.179.16.69]) by electra.cc.umanitoba.ca (8.13.0/8.13.0) with ESMTP id l5G2FQcG029785; Fri, 15 Jun 2007 21:15:33 -0500 (CDT) Original-Received: (from mills@localhost) by deneb.cc.umanitoba.ca (8.13.8+Sun/8.12.2) id l5G2FQ85007602; Fri, 15 Jun 2007 21:15:26 -0500 (CDT) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.10i X-detected-kernel: Solaris 9 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15899 Archived-At: On Fri, Jun 15, 2007 at 08:28:07PM -0400, Glenn Morris wrote: > Gary Mills wrote: > > > When `Print Buffer' is selected from the file menu, the file appears > > on the printer, but some lines have extra spaces. The letter `r' has > > disappeared on these lines. It's as if `pr -er | lp' has been used > > to print the file. Printing works correctly with emacs-21.2. > > > > These differences in lpr.el appear relevant: > > > > < (defcustom lpr-page-header-switches '("-F") > > --- > > > (defcustom lpr-page-header-switches '("-h %s" "-F") > > So does the problem go away if you do: > > (setq lpr-page-header-switches '("-F")) See below. > I can't reproduce this though. Does it happen with every buffer? Can > you give a recipe starting from My test has been `emacs /usr/pub/ascii', followed by `ESC-X print-buffer'. One thing I also noticed is that the page header looks like this: Jun 11 11:25 2007 a Emacbuff Page 1 I replaced lpr.elc and lpr.el in /usr/local/share/emacs/22.1/lisp with copies from emacs/21.2/lisp. After that, the page header was: Jun 12 10:10 2007 ascii Emacs buffer Page 1 The rest of the file was correct too. > emacs -q --no-site-file > > that shows the problem? I was able to capture the file before it went to the printer. My test was `emacs -q --no-site-file /usr/pub/ascii', followed by `ESC-X print-buffer'. Here's the beginning of the file: ==> /var/spool/print/dfA191S0106080020b3a84b <== Jun 15 20:58 2007 a Emacbuff Page 1 |000 nul|001 soh|002 stx|003 etx|004 eot|005 enq|006 ack|007 bel| |010 bs |011 ht |012 nl |013 vt |014 np |015 c |016 so |017 si | |020 dle|021 dc1|022 dc2|023 dc3|024 dc4|025 nak|026 syn|027 etb| |030 can|031 em |032 sub|033 esc|034 fs |035 gs |036 s |037 us | |040 sp |041 ! |042 " |043 # |044 $ |045 % |046 & |047 ' | Here's the same test after I did ``(setq lpr-page-header-switches '("-F"))'': ==> /var/spool/print/dfA192S0106080020b3a84b <== Jun 15 21:10 2007 Page 1 |000 nul|001 soh|002 stx|003 etx|004 eot|005 enq|006 ack|007 bel| |010 bs |011 ht |012 nl |013 vt |014 np |015 cr |016 so |017 si | |020 dle|021 dc1|022 dc2|023 dc3|024 dc4|025 nak|026 syn|027 etb| |030 can|031 em |032 sub|033 esc|034 fs |035 gs |036 rs |037 us | |040 sp |041 ! |042 " |043 # |044 $ |045 % |046 & |047 ' | -- -Gary Mills- -Unix Support- -U of M Academic Computing and Networking-