From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marius Hofert Newsgroups: gmane.emacs.help Subject: Printing questions concerning lpr-switches and printer-name Date: Wed, 22 May 2013 21:21:18 +0200 Message-ID: <87y5b6stw1.fsf@math.ethz.ch> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369250518 27787 80.91.229.3 (22 May 2013 19:21:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 May 2013 19:21:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 22 21:21:58 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UfEbi-0005zb-AR for geh-help-gnu-emacs@m.gmane.org; Wed, 22 May 2013 21:21:54 +0200 Original-Received: from localhost ([::1]:41817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfEbh-0005VQ-SH for geh-help-gnu-emacs@m.gmane.org; Wed, 22 May 2013 15:21:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:32979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfEbQ-0005QF-7V for help-gnu-emacs@gnu.org; Wed, 22 May 2013 15:21:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfEbJ-00043z-K2 for help-gnu-emacs@gnu.org; Wed, 22 May 2013 15:21:36 -0400 Original-Received: from mail-we0-x234.google.com ([2a00:1450:400c:c03::234]:60509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfEbJ-00043B-ED for help-gnu-emacs@gnu.org; Wed, 22 May 2013 15:21:29 -0400 Original-Received: by mail-we0-f180.google.com with SMTP id t60so613391wes.39 for ; Wed, 22 May 2013 12:21:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:user-agent:date:message-id:mime-version :content-type; bh=WMngZxiaHrgxy0Dr9Fkby4REgsXmusQ9RBIf6fJG7kk=; b=K3JPezIHLRWmTEM4WC30l6LASmeIoB4OPnOSBGoIM+p6lbkkpePNQ0Jj7DCl3kVD61 10CEVSpVwdN0I3qjga/RLzmG0bji0JjjX0h1mBJVAzY6JP5p6ND4MIGaK+UUT6+LeXhg 22mMZMKZ8f/Uqz7fRbZpu+ah/5kjK5uCzpSc91X8OrVJC2KcPX9Jf+JEvijIuO1QUaIC WDOPZYa0KFypNOVQdyTob91uR8ZiPUy3oXdBCjUwsKkhMgZlGHPrjwO3KeyxK73cMx9C 3t36oykH5xjhgezCEi7jKr1/gjk4qb0dvHDupWPkTP+xXWlpJ20xvrfOniZ2NX9BbaIr M6AQ== X-Received: by 10.180.109.84 with SMTP id hq20mr17734296wib.11.1369250486661; Wed, 22 May 2013 12:21:26 -0700 (PDT) Original-Received: from sklar (178-83-94-113.dynamic.hispeed.ch. [178.83.94.113]) by mx.google.com with ESMTPSA id eq15sm30978471wic.4.2013.05.22.12.21.24 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 22 May 2013 12:21:25 -0700 (PDT) User-agent: mu4e 0.9.9.5; emacs 24.3.50.1 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::234 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90985 Archived-At: Hi, I have the following settings for printing on 'P' from dired-mode: (setq printer-name "myPrinter") (setq lpr-switches '("-o sides=one-sided -o number-up=2")) If I hit 'P' on a file foo.pdf in dired-mode, I get Print foo.pdf with: lpr -o sides=one-sided -o number-up=2 According to the manual, the printer is then added via -P. 1) How can I adjust the printer if I want to print foo.pdf on a different printer (I use about 3 different printers)? I am wondering if it wouldn't be better to specify "-P myPrinter" as part of lpr-switches so that I can at least adjust it manually when receiving the message: Print foo.pdf with: lpr -o sides=one-sided -o number-up=2 -P myPrinter This is also not so convenient of course (and that's the reason why I'm asking... is there a better approach?) 2) I would like to print files of certain types (like .c, .R) by 'a2ps' instead of 'lpr'. How can this be dealt with (or is again the best solution to adjust the print command manually [in this case completely replace it]?). My current work around is to use '!' with a predefined printing command for such files (not very elegant, though). Cheers, Marius