From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Sebastian Tennant Newsgroups: gmane.emacs.bugs Subject: Bug in ps-print.el? Date: Wed, 12 Jan 2005 04:18:33 +0000 Organization: Often Lacking Message-ID: <1105503514.9849.81.camel@localhost.localdomain> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1105505017 7340 80.91.229.6 (12 Jan 2005 04:43:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Jan 2005 04:43:37 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 12 05:43:28 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CoaLw-0005Y6-00 for ; Wed, 12 Jan 2005 05:43:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CoaSz-0007dz-45 for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Jan 2005 23:50:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CoaSD-0007UA-3Z for bug-gnu-emacs@gnu.org; Tue, 11 Jan 2005 23:49:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CoaS3-0007Pq-KY for bug-gnu-emacs@gnu.org; Tue, 11 Jan 2005 23:49:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CoaS1-0007Eo-Ao for bug-gnu-emacs@gnu.org; Tue, 11 Jan 2005 23:49:45 -0500 Original-Received: from [212.159.14.212] (helo=ptb-relay01.plus.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CoZy3-00079p-E2 for bug-gnu-emacs@gnu.org; Tue, 11 Jan 2005 23:18:47 -0500 Original-Received: from [81.174.136.8] (helo=[192.168.0.2]) by ptb-relay01.plus.net with esmtp (Exim) id 1CoZy1-0008G4-K6 for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2005 04:18:45 +0000 Original-To: bug-gnu-emacs@gnu.org X-Mailer: Evolution 2.0.3 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: main.gmane.org gmane.emacs.bugs:10394 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:10394 (current-buffer) # (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