unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Gary Mills <mills@cc.umanitoba.ca>
To: Glenn Morris <rgm@gnu.org>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: print buffer produces incorrect format with emacs-22.1 and Sol 10
Date: Fri, 15 Jun 2007 21:15:26 -0500	[thread overview]
Message-ID: <20070616021526.GA23880@cc.umanitoba.ca> (raw)
In-Reply-To: <xzmyz0eoa0.fsf@fencepost.gnu.org>

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-

  reply	other threads:[~2007-06-16  2:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-11 23:20 print buffer produces incorrect format with emacs-22.1 and Sol 10 Gary Mills
2007-06-16  0:28 ` Glenn Morris
2007-06-16  2:15   ` Gary Mills [this message]
2007-06-16  2:31     ` Glenn Morris
2007-06-16  2:37       ` Gary Mills
2007-06-17  2:08         ` Glenn Morris
2007-06-17  2:26           ` Gary Mills

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070616021526.GA23880@cc.umanitoba.ca \
    --to=mills@cc.umanitoba.ca \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).