[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: print buffer produces incorrect format with emacs-22.1 and Sol 10
From: |
Gary Mills |
Subject: |
Re: print buffer produces incorrect format with emacs-22.1 and Sol 10 |
Date: |
Fri, 15 Jun 2007 21:15:26 -0500 |
User-agent: |
Mutt/1.5.10i |
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-