unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Bug in ps-print.el?
@ 2005-01-12  4:18 Sebastian Tennant
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Tennant @ 2005-01-12  4:18 UTC (permalink / raw)


(current-buffer)
#<buffer *scratch*>

(emacs-version)
"GNU Emacs 21.3.1 (i386-pc-linux-gnu)
 of 2004-10-16 on raven, modified by Debian"

(progn
  (setq ps-selected-pages '(1))
  (ps-print-buffer nil))
t

; works fine printing this scratch buffer

(progn
  (setq ps-selected-pages '(1))
  (set-buffer "*info*") ; info buffer - emacs (Top)
  (ps-print-buffer nil))
t

; doesn't work - printer gears up and then winds down without doing anything
; spooled PS file ends up in /var/spool/cups/

(shell-command "sudo ls -l /var/spool/cups" t)
536
total 32
-rw-------  1 root lpadmin  672 Jan 11 22:28 c00065
-rw-------  1 root lpadmin  672 Jan 11 22:30 c00066
-rw-------  1 root lpadmin  672 Jan 11 22:31 c00067
-rw-------  1 root lpadmin  672 Jan 12 02:09 c00068
-rw-------  1 root lpadmin  672 Jan 12 02:11 c00069
-rw-------  1 root lpadmin  672 Jan 12 03:40 c00070
-rw-------  1 root lpadmin  672 Jan 12 03:51 c00071
drwxrwx--T  2 root lpadmin 4096 Jan 10 02:09 tmp

; As you can see there are several failed print jobs here.
; I only use the *info* buffer as an example.  Behaviour is
; completely erratic as far as I can tell, but generally,
; individual pages and ranges are far more likely to fail
; that printing the whole buffer.  I have got some ranges
; to work by expanding the range beyond my requirements and
; then getting the range I'm after.

(shell-command "sudo cat /var/spool/cups/c00071" t)
1402
^A^A^@^B^@^@^@^A^AG^@^Rattributes-charset^@^Eutf-8H^@^[attributes-natural-language^@^Ben^BE^@^Kprinter-uri^@$ip\p://localhost:631/printers/HL-1450B^@^Yjob-originating-user-name^@^FsebyteB^@^Hjob-name^@^G(stdin)I^@^Odocument\-format^@^Vapplication/postscriptB^@
job-sheets^@^DnoneB^@^@^@^DnoneD^@^Emedia^@^BA4B^@^HPageSize^@^BA4B^@
InputSlot^@^DautoB^@
PageRegion^@^BA4B^@
Resolution^@
600x600dpi!^@^Ljob-priority^@^D^@^@^@2B^@^Yjob-originating-host-name^@
localhost!^@^Fjob-id^@^D^@^@^@G#^@     \ job-state^@^D^@^@^@     !
^@^Zjob-media-sheets-completed^@^D^@^@^@^@E^@^Ojob-printer-uri^@)http://debian-laptop\:631/printers/HL-1450B^@^Hjob-name^@^G(stdin)!^@^Ljob-k-octets^@^D^@^@^@$!^@^Ptime-at-creation^@^DA\344\236\272\!^@^Rtime-at-processing^@^DA\344\236\272!^@^Qtime-at-completed^@^DA\344\236\275D^@^Njob-hold-until^@^Gno-hold^C

; I've no idea if this is any use and I sincerely hope I'm not
; doing something incredibly dumb and wasting your time.

Sebastian

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

* Bug in ps-print.el?
@ 2005-06-21 11:15 Sebastian Tennant
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Tennant @ 2005-06-21 11:15 UTC (permalink / raw)


Hi all,

Here is a transcript of a scratch buffer session:

---

(current-buffer)
#<buffer *scratch*>

(emacs-version)
"GNU Emacs 21.3.1 (i386-pc-linux-gnu)
 of 2004-10-16 on raven, modified by Debian"

(progn
  (setq ps-selected-pages '(1))
  (ps-print-buffer nil))
t

; works fine printing this scratch buffer

(progn
  (setq ps-selected-pages '(1))
  (set-buffer "*info*") ; info buffer - emacs (Top)
  (ps-print-buffer nil))
t

; doesn't work - printer gears up and then winds down without doing
; anything and spooled PS file ends up in /var/spool/cups/

(shell-command "sudo ls -l /var/spool/cups" t)
536
total 32
-rw-------  1 root lpadmin  672 Jan 11 22:28 c00065
-rw-------  1 root lpadmin  672 Jan 11 22:30 c00066
-rw-------  1 root lpadmin  672 Jan 11 22:31 c00067
-rw-------  1 root lpadmin  672 Jan 12 02:09 c00068
-rw-------  1 root lpadmin  672 Jan 12 02:11 c00069
-rw-------  1 root lpadmin  672 Jan 12 03:40 c00070
-rw-------  1 root lpadmin  672 Jan 12 03:51 c00071
drwxrwx--T  2 root lpadmin 4096 Jan 10 02:09 tmp

; As you can see there are several failed print jobs here.
; I'm only using the *info* buffer as an example.  Behaviour is
; completely erratic on all buffers if individual pages and/or
; page-ranges are attempted.

; Printing the whole buffer (all pages) works fine.

; I have got some ranges to work by expanding the range beyond my
; requirements and then getting the range I'm after.

I'm re-submitting this report.  First posted 12th Jan 05, no response.
Problem persists.

Sincerely,

Sebastian Tennant

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

end of thread, other threads:[~2005-06-21 11:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-21 11:15 Bug in ps-print.el? Sebastian Tennant
  -- strict thread matches above, loose matches on Subject: below --
2005-01-12  4:18 Sebastian Tennant

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