From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: allan gottlieb Newsgroups: gmane.emacs.help Subject: specifying printer to gnus Date: Wed, 06 Jun 2018 15:31:03 -0400 Message-ID: <87efhj67bc.fsf@nyu.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1528313394 28704 195.159.176.226 (6 Jun 2018 19:29:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 6 Jun 2018 19:29:54 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 06 21:29:50 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQe7y-0007NT-5E for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Jun 2018 21:29:50 +0200 Original-Received: from localhost ([::1]:54251 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQeA5-00082Z-1j for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Jun 2018 15:32:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQe9J-0007sF-UC for help-gnu-emacs@gnu.org; Wed, 06 Jun 2018 15:31:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQe9E-0004cq-U0 for help-gnu-emacs@gnu.org; Wed, 06 Jun 2018 15:31:13 -0400 Original-Received: from mx.cims.nyu.edu ([128.122.49.99]:42360) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fQe9E-0004bw-Nm for help-gnu-emacs@gnu.org; Wed, 06 Jun 2018 15:31:08 -0400 Original-Received: from smtp.cs.nyu.edu (smtp.cs.nyu.edu [128.122.49.97]) by mx.cims.nyu.edu (8.15.1+Sun/8.15.1) with ESMTPS id w56JV48d013843 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 6 Jun 2018 15:31:05 -0400 (EDT) Original-Received: from E7450.localdomain (ool-18be58aa.dyn.optonline.net [24.190.88.170]) (authenticated bits=0) by smtp.cs.nyu.edu (8.14.7/8.14.7) with ESMTP id w56JV3SO029362 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 6 Jun 2018 15:31:04 -0400 Original-Received: by E7450.localdomain (Postfix, from userid 1000) id 3CBB644616; Wed, 6 Jun 2018 15:31:03 -0400 (EDT) X-Greylist: inspected by milter-greylist-4.6.2 (mx.cims.nyu.edu [128.122.49.99]); Wed, 06 Jun 2018 15:31:05 -0400 (EDT) for IP:'128.122.49.97' DOMAIN:'smtp.cs.nyu.edu' HELO:'smtp.cs.nyu.edu' FROM:'gottlieb@nyu.edu' RCPT:'' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx.cims.nyu.edu [128.122.49.99]); Wed, 06 Jun 2018 15:31:05 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.99.4 at mx X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.80 on 128.122.49.99 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 128.122.49.99 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:116995 Archived-At: I have two printers on my system. ss is a color deskjet connected via the lan lj is a b/w laserjet directly connected via usb I want to print on lj by default. I set the PRINTER env variable to lj in .bash_profile When I execute gnus-summary-pipe-output (via | in Summary) the article (mail message) is printed on lj When I execute gnus-mime-pipe-part (via | in Article) the attachment is printed on lj However, when I execute ajg-gnus-summary-print-article-maybe-bw (via AP in Summary) the article is printed on ss. This suggests my ajg-gnus-summary-print-article-maybe-bw is at fault, but here is the entire function (defun ajg-gnus-summary-print-article-maybe-bw () "Print with `gnus-summary-print-article' possibly in black&white." (interactive) (let ((ps-print-color-p ajg-color-printer-p)) (call-interactively 'gnus-summary-print-article))) I don't see where the printer is being set to ss. Any hints? thanks in advance, allan