all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* print buffer produces incorrect format with emacs-22.1 and Sol 10
@ 2007-06-11 23:20 Gary Mills
  2007-06-16  0:28 ` Glenn Morris
  0 siblings, 1 reply; 7+ messages in thread
From: Gary Mills @ 2007-06-11 23:20 UTC (permalink / raw
  To: bug-gnu-emacs

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")
	
	<                    (nconc (list "-h" title)
	<                           lpr-page-header-switches)))
	---
	>                    (mapcar (lambda (e) (format e title))
	>                            lpr-page-header-switches)))

In GNU Emacs 22.1.1 (i386-pc-solaris2.10, GTK+ Version 2.4.9)
 of 2007-06-07 on eltanin
Windowing system distributor `Sun Microsystems, Inc.', version 11.0.6620
configured using `configure  '--program-prefix=g' '--without-gcc' '--with-x-toolkit=gtk''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: en_CA.ISO8859-1
  value of $LC_CTYPE: en_CA.ISO8859-1
  value of $LC_MESSAGES: en_CA.ISO8859-1
  value of $LC_MONETARY: en_CA.ISO8859-1
  value of $LC_NUMERIC: en_CA.ISO8859-1
  value of $LC_TIME: en_CA.ISO8859-1
  value of $LANG: en_CA.ISO8859-1
  locale-coding-system: iso-8859-1
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu> 
<report-emacs-bug>

Recent messages:
("gemacs")
For information about the GNU Project and its goals, type C-h C-p.
Loading emacsbug...
Loading regexp-opt...done
Loading emacsbug...done

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: print buffer produces incorrect format with emacs-22.1 and Sol 10
  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
  0 siblings, 1 reply; 7+ messages in thread
From: Glenn Morris @ 2007-06-16  0:28 UTC (permalink / raw
  To: Gary Mills; +Cc: bug-gnu-emacs

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"))

I can't reproduce this though. Does it happen with every buffer? Can
you give a recipe starting from

emacs -q --no-site-file

that shows the problem?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: print buffer produces incorrect format with emacs-22.1 and Sol 10
  2007-06-16  0:28 ` Glenn Morris
@ 2007-06-16  2:15   ` Gary Mills
  2007-06-16  2:31     ` Glenn Morris
  0 siblings, 1 reply; 7+ messages in thread
From: Gary Mills @ 2007-06-16  2:15 UTC (permalink / raw
  To: Glenn Morris; +Cc: bug-gnu-emacs

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-

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: print buffer produces incorrect format with emacs-22.1 and Sol 10
  2007-06-16  2:15   ` Gary Mills
@ 2007-06-16  2:31     ` Glenn Morris
  2007-06-16  2:37       ` Gary Mills
  0 siblings, 1 reply; 7+ messages in thread
From: Glenn Morris @ 2007-06-16  2:31 UTC (permalink / raw
  To: Gary Mills; +Cc: bug-gnu-emacs

Gary Mills wrote:

> 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

What do the header and first few lines of output look like when you
try on the command-line:

pr -h "ascii Emacs buffer" -F /usr/pub/ascii

and

pr -h ascii Emacs buffer -F /usr/pub/ascii

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: print buffer produces incorrect format with emacs-22.1 and Sol 10
  2007-06-16  2:31     ` Glenn Morris
@ 2007-06-16  2:37       ` Gary Mills
  2007-06-17  2:08         ` Glenn Morris
  0 siblings, 1 reply; 7+ messages in thread
From: Gary Mills @ 2007-06-16  2:37 UTC (permalink / raw
  To: Glenn Morris; +Cc: bug-gnu-emacs

On Fri, Jun 15, 2007 at 10:31:44PM -0400, Glenn Morris wrote:
> Gary Mills wrote:
> 
> > 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
> 
> What do the header and first few lines of output look like when you
> try on the command-line:
> 
> pr -h "ascii Emacs buffer" -F /usr/pub/ascii
> 
> and
> 
> pr -h ascii Emacs buffer -F /usr/pub/ascii

Not quite the same symptoms...

  <mills@S0106080020b3a84b:243>$ fer" -F /usr/pub/ascii | head               <
  
  
  Jan 21 17:26 2005  ascii Emacs buffer 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  ' |
  <mills@S0106080020b3a84b:244>$ er -F /usr/pub/ascii | head                 <
  pr: can't open Emacs
  pr: can't open buffer
  pr: can't open -F
  
  
  Jan 21 17:26 2005  ascii 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-

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: print buffer produces incorrect format with emacs-22.1 and Sol 10
  2007-06-16  2:37       ` Gary Mills
@ 2007-06-17  2:08         ` Glenn Morris
  2007-06-17  2:26           ` Gary Mills
  0 siblings, 1 reply; 7+ messages in thread
From: Glenn Morris @ 2007-06-17  2:08 UTC (permalink / raw
  To: Gary Mills; +Cc: bug-gnu-emacs


Can you confirm it works if you use this:

(setq lpr-page-header-switches '("-h" "%s" "-F"))

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: print buffer produces incorrect format with emacs-22.1 and Sol 10
  2007-06-17  2:08         ` Glenn Morris
@ 2007-06-17  2:26           ` Gary Mills
  0 siblings, 0 replies; 7+ messages in thread
From: Gary Mills @ 2007-06-17  2:26 UTC (permalink / raw
  To: Glenn Morris; +Cc: bug-gnu-emacs

On Sat, Jun 16, 2007 at 10:08:23PM -0400, Glenn Morris wrote:
> 
> Can you confirm it works if you use this:
> 
> (setq lpr-page-header-switches '("-h" "%s" "-F"))

Yes, it works...

  ==> /var/spool/print/dfA193S0106080020b3a84b <==
  
  
  Jun 16 21:13 2007  ascii Emacs buffer 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  ' |

Okay, that was too simple!  The same peculiar thing happens on the
command line:

  $ pr "-h ascii Emacs buffer" -F /usr/pub/ascii | head
  
  
  Jan 21 17:26 2005   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  ' |

I'll have to go look at the source to see why it does that.  It makes
no sense at all to interpret some characters as flags and the rest
as the header.

-- 
-Gary Mills-    -Unix Support-    -U of M Academic Computing and Networking-

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-06-17  2:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.