From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Friedrich Delgado Friedrichs Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#1138: 23.0.60; ps-print.el error with unusual page sizes Date: Fri, 10 Oct 2008 20:47:18 +0200 Message-ID: <20081010184718.GA22290@taupan.ath.cx> Reply-To: friedel@nomaden.org, 1138@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4Ckj6UjgE2iN1+kY" X-Trace: ger.gmane.org 1223698651 4068 80.91.229.12 (11 Oct 2008 04:17:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Oct 2008 04:17:31 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 11 06:18:07 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KoVvZ-0002j3-N5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Oct 2008 06:18:06 +0200 Original-Received: from localhost ([127.0.0.1]:48666 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KoVuV-0002Mm-G9 for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Oct 2008 00:16:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KoNND-0007F7-LG for bug-gnu-emacs@gnu.org; Fri, 10 Oct 2008 15:10:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KoNNA-0007DN-UQ for bug-gnu-emacs@gnu.org; Fri, 10 Oct 2008 15:10:03 -0400 Original-Received: from [199.232.76.173] (port=33897 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KoNNA-0007DB-NY for bug-gnu-emacs@gnu.org; Fri, 10 Oct 2008 15:10:00 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38387) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KoNNA-0000wg-RF for bug-gnu-emacs@gnu.org; Fri, 10 Oct 2008 15:10:01 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9AJ9wpG032257; Fri, 10 Oct 2008 12:09:58 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9AIt3sX028001; Fri, 10 Oct 2008 11:55:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Friedrich Delgado Friedrichs Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 10 Oct 2008 18:55:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1138 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122366444826712 (code B ref -1); Fri, 10 Oct 2008 18:55:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 10 Oct 2008 18:47:28 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9AIlPmp026706 for ; Fri, 10 Oct 2008 11:47:26 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:38749 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KoMyw-00026n-MH for emacs-pretest-bug@gnu.org; Fri, 10 Oct 2008 14:44:58 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KoN1H-0005Ag-Me for emacs-pretest-bug@gnu.org; Fri, 10 Oct 2008 14:47:24 -0400 Original-Received: from dudelab.org ([212.12.33.202]:2190 helo=mail.dudelab.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KoN1H-0005AQ-76 for emacs-pretest-bug@gnu.org; Fri, 10 Oct 2008 14:47:23 -0400 Original-Received: from abrasax.taupan.ath.cx (p5B10E0F7.dip.t-dialin.net [91.16.224.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Friedrich Delgado Friedrichs", Issuer "User CA" (verified OK)) by mail.dudelab.org (Postfix) with ESMTP id 450BA228149 for ; Fri, 10 Oct 2008 20:46:20 +0200 (CEST) Original-Received: by abrasax.taupan.ath.cx (Postfix, from userid 1000) id 654B32860001; Fri, 10 Oct 2008 20:47:18 +0200 (CEST) Content-Disposition: inline X-Gotcha: For what reason exactly are you reading this header, huh? X-Disclaimer: This is not an automatically generated header. User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 10 Oct 2008 15:10:03 -0400 X-Mailman-Approved-At: Sat, 11 Oct 2008 00:16:54 -0400 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: news.gmane.org gmane.emacs.bugs:21401 gmane.emacs.pretest.bugs:23198 Archived-At: --4Ckj6UjgE2iN1+kY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! ps-print.el from current cvs uses non-exhaustive cases in the function ps-n-up-printing, if a page size symbol does not match any of the cars in ps-n-up-database. The background of this is that I'm using a label printer with maximum 54mm (nominally, really 136 points, 47mm) width to print labels and small leaflets. My ps-page-dimensions-database looks like this: ((a4 595.275590551181 841.8897637795276 "A4") (a3 841.8897637795276 1190.551181102362 "A3") (letter 612.0 792.0 "Letter") (legal 612.0 1008.0 "Legal") (letter-small 552.96 731.52 "LetterSmall") (tabloid 792.0 1224.0 "Tabloid") (ledger 1224.0 792.0 "Ledger") (statement 396.0 612.0 "Statement") (executive 540.0 720.0 "Executive") (a4small 537.84 781.1999999999999 "A4Small") (b4 729.0 1031.76 "B4") (b5 515.52 729.0 "B5") (shipping 271 136 "Shipping") (topcoated 425.19685 136 "TopCoatedPaper")) The next to last entries are the relevant ones. If ps-paper-type is set to 'topcoated or 'shipping, ps-n-up-printing returns nil, causing an error in the format for the page header later. ps-n-up-printing being set to 1 This quick workaround fixes this for me: --------------------------- --- ps-print.el.~1.219.~ 2008-05-20 00:03:17.000000000 +0200 +++ ps-print.el 2008-10-10 20:28:05.000000000 +0200 @@ -5256,7 +5256,8 @@ (and the-list (while (> ps-n-up-printing (caar the-list)) (setq the-list (cdr the-list)))) - (car the-list))) + (or (car the-list) + '(1 nil 1 1 0)))) =20 =20 (defconst ps-n-up-filling-database --------------------------- However you might want to apply a more general fix for the distribution. I've tried to delete some insubstantial information from M-x report-emacs-bug, and I think it wasn't too much, but if you have any further questions, please don't hesitate to ask. Kind regards Friedel --=20 Friedrich Delgado Friedrichs --4Ckj6UjgE2iN1+kY Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkjvozYACgkQCTmCEtF2zEDa2wCfRxOwYrQH/o8a0m8Z3zXk5yqj 91kAn0fyNal7X3/A7pzRoTsCjBv2bflG =hjOO -----END PGP SIGNATURE----- --4Ckj6UjgE2iN1+kY--