From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: BRUCE INGALLS Newsgroups: gmane.emacs.help Subject: Re: Printing from WindowXP version of emacs Date: Sat, 7 Jan 2006 20:06:03 -0500 Message-ID: <534d19de0601071706u4106e646g2f0108aa5c489bc@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1136682385 24954 80.91.229.2 (8 Jan 2006 01:06:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 8 Jan 2006 01:06:25 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 08 02:06:19 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EvP0i-0004St-P6 for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Jan 2006 02:06:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EvP2Z-0003eG-LH for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Jan 2006 20:08:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EvP2P-0003e9-BW for help-gnu-emacs@gnu.org; Sat, 07 Jan 2006 20:08:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EvP2O-0003dh-IP for help-gnu-emacs@gnu.org; Sat, 07 Jan 2006 20:08:00 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EvP2O-0003de-89 for help-gnu-emacs@gnu.org; Sat, 07 Jan 2006 20:08:00 -0500 Original-Received: from [64.233.184.205] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EvP4P-0007Vh-8F for help-gnu-emacs@gnu.org; Sat, 07 Jan 2006 20:10:05 -0500 Original-Received: by wproxy.gmail.com with SMTP id i27so2662693wra for ; Sat, 07 Jan 2006 17:06:03 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=nVD1EPLn3PCfmfhYHHLtBhssf8y2B0kroSpsIzj5whW1q7xsYmxvtz9P0ji8ttNMZ2gUiZjGMdTNqJ+cEE2wCzsbI+MG2YI68YPHozKG4+P8b6qTLF4Yp2q74Uig9osd/cM9tBEYZvTjvSJjJy2P9ftP3jsl9JQv0tbDJiTcWvc= Original-Received: by 10.54.73.19 with SMTP id v19mr6766832wra; Sat, 07 Jan 2006 17:06:03 -0800 (PST) Original-Received: by 10.54.127.3 with HTTP; Sat, 7 Jan 2006 17:06:03 -0800 (PST) Original-To: help-gnu-emacs@gnu.org Content-Disposition: inline X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:32534 Archived-At: > From: Eli Zaretskii > Date: Sat, 07 Jan 2006 11:18:43 +0200 > Subject: > > Date: Sat, 7 Jan 2006 00:00:24 -0500 > > > > Date: Thu, 05 Jan 2006 22:01:16 +0100 > > > > From: Lennart Borgman > > > > > > > > >>(default-printer-name) returns \\host-name\1234567890 > > > >... Do you really expect something like that to work? I mean it > > > > is exactly those figures I wrote above. > > > > That sure does not look right. > > What doesn't look right, exactly? I took the above as a template, not > as a literal string that is the printer's name. If it's a literal > string, then it is indeed strange, but default-printer-name simply > calls GetProfileString and GetPrinter APIs, so whatever those return, > it's the system's notion of the printer. Unless there's a bug in > default-printer-name, in which case please step through it and tell > what goes wrong there. Agreed. Lennart did say "exactly". I did not realize that Emacs already had w32 default-printer code. Does anyone know, or can provide suggestions for default printers for other platforms, such as mac osx, gnome, kde? Do the alpha releases of Emacs on w32 set printer-name to default-printer-n= ame? If so, then w32 printing should already be easy. As per this thread, all that should remain, is to set a printing-method customize variable for plain/postscript/ghostscript/htmlize-view, and to make it go.