From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vinicius Jose Latorre Newsgroups: gmane.emacs.bugs Subject: bug#1138: 23.0.60; ps-print.el error with unusual page sizes Date: Fri, 17 Oct 2008 00:05:40 -0200 Message-ID: <48F7F2F4.6090903@ig.com.br> References: <87r66mg6d6.fsf@cyd.mit.edu> <48F694C9.4090505@ig.com.br> <20081016115842.GA26548@taupan.ath.cx> Reply-To: Vinicius Jose Latorre , 1138@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1224210617 7587 80.91.229.12 (17 Oct 2008 02:30:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Oct 2008 02:30:17 +0000 (UTC) Cc: Chong Yidong , 1138@emacsbugs.donarmstrong.com To: friedel@nomaden.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 17 04:31:17 2008 connect(): Connection refused 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 1Kqf7U-0004qj-Mz for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Oct 2008 04:31:17 +0200 Original-Received: from localhost ([127.0.0.1]:53724 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kqf6P-0007NK-HH for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Oct 2008 22:30:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kqf6L-0007Mn-W1 for bug-gnu-emacs@gnu.org; Thu, 16 Oct 2008 22:30:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kqf6J-0007K3-Pp for bug-gnu-emacs@gnu.org; Thu, 16 Oct 2008 22:30:04 -0400 Original-Received: from [199.232.76.173] (port=36263 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kqf6J-0007K0-Jg for bug-gnu-emacs@gnu.org; Thu, 16 Oct 2008 22:30:03 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:39556) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kqf6J-0008QE-0u for bug-gnu-emacs@gnu.org; Thu, 16 Oct 2008 22:30:03 -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 m9H2U0XO007169; Thu, 16 Oct 2008 19:30:00 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9H2F3Kl003791; Thu, 16 Oct 2008 19:15:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Vinicius Jose Latorre Original-Sender: Vinicius =?UTF-8?Q?Jos=C3=A9?= Latorre Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 17 Oct 2008 02:15: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 1138-submit@emacsbugs.donarmstrong.com id=B1138.12242091722429 (code B ref 1138); Fri, 17 Oct 2008 02:15:03 +0000 Original-Received: (at 1138) by emacsbugs.donarmstrong.com; 17 Oct 2008 02:06:12 +0000 Original-Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.26]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9H268rN002423 for <1138@emacsbugs.donarmstrong.com>; Thu, 16 Oct 2008 19:06:09 -0700 Original-Received: by qw-out-2122.google.com with SMTP id 9so129246qwb.13 for <1138@emacsbugs.donarmstrong.com>; Thu, 16 Oct 2008 19:06:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding:sender; bh=BF6c0W+erdtMyvoGMBadomwjhg6/g3T0mXhFWMXQUVQ=; b=Pi7NZj0qttE/FQNr43DuaCDvBNES+rzzns+OBamviY6xVzK5NNfdemLi62H8YxNyPC SWHzam8Y+rqA0N14LxEywwmhypVVoh7KnXgOSVRyfxFi3jMmQOnvZZ1QwaOk9Z6IUoDu ClP+hnHBfoRxkTQ4/zVmXEbDAg7Lc0NC1W72o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :sender; b=rhdOjvlqym/BEaFFao0WkUZP5eIjm8GldIlWJmn9/OVOh0+0T4e2+H8Kt5gveG5Pgm 5p943kQJgK9CeoM0V6Fmx/S8+qqKhJXkZcuIumSpA+xsIh6R1lBRbZY5Vmjs0nIJnvh/ Li/Aoi1GQhLO0TwII1zWU0EyDRrxmWxJkF1oo= Original-Received: by 10.214.25.11 with SMTP id 11mr4028581qay.32.1224209168280; Thu, 16 Oct 2008 19:06:08 -0700 (PDT) Original-Received: from ?192.168.0.101? ([201.82.12.112]) by mx.google.com with ESMTPS id 6sm1618008qwd.4.2008.10.16.19.06.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 16 Oct 2008 19:06:07 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.17) Gecko/20080829 SeaMonkey/1.1.12 In-Reply-To: <20081016115842.GA26548@taupan.ath.cx> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 16 Oct 2008 22:30:04 -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:21578 Archived-At: Friedrich Delgado Friedrichs wrote: > Hi. > > Vinicius Jose Latorre schrieb: > >> Ok, it seems ok to add these two new entries into >> ps-page-dimensions-database. >> > > Well, it's customisable, so I customised it according to my paper size > :) > :) > Would there be another way to print a small page from emacs? > > >> Well, the right thing to do is to add new entries into ps-n-up-database, >> like: >> > > >> (defconst ps-n-up-database >> '(...... >> (shipping >> (100 nil 1 1 0)) >> (topcoated >> (100 nil 1 1 0))) >> ...) >> > > Label printers support lots of unusual small paper sizes. > > The Seiko SLP-440 I'm using has > > 8mmSpine 35mmSlide AddressLarge AddressSmall Diskette EuroFolderNarrow > EuroFolderWide EuroNameBadge FileFolder Jewelry MediaBadge > MultiPurpose Shipping VHSFace VHSSpine ZipDisk CutHanging13 > CutHanging15 EuroFileFolder RetailLabel EuroNameBadgeLarge > TopCoatedPaper Custom > > And Custom allows me to specify completely arbitrary values. > > (If you're interested in the exact dimensions for all of those, I can > quote them from the ppd, but:) > Well, I think it could be a good thing to have these dimensions, if you can, please, send them back to me. > Does it really make sense to add all those unusual sizes to > ps-n-up-database, especially since it's not configurable, but > ps-page-dimensions-database is? > Hmmm, as you said (below), it does not make sense to have n-up > 1 for these sizes, so your patch seems suitable to deal with this situation without having to add entries into ps-n-up-database. >> Please, try the change above and let me know the results. >> > > I can try this later at home, but I don't really like the approach > here. I think it doesn't scale. When I go and buy differently sized > labels, I need to touch ps-n-up-database again, adding the same value > '(100 nil 1 1 0). > > >> Does it make sense to have ps-n-up-printing > 1 for these 2 new entries?? >> > > Not really. Most content needs to be specially sized to even fit on > one page. We're talking about 5.4mm x 150mm, i.e. a long receipt and > 5.4mm x 100mm, a large address label here. > > >> ps-print does not deal with paper sizes which only can have 1 n-up, but >> it's possible to change this if this is the case. >> > > As a user, I'd prefer it if a sane default for 1 n-up would be chosen > if the page size is smaller than, say, A6. > Ok, it seems that your patch does this.