From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin.sputnik@gmail.com Newsgroups: gmane.emacs.help Subject: printing from within emacs, without having "lpr" Date: Fri, 24 Jun 2016 06:25:52 -0700 (PDT) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1466811037 12630 80.91.229.3 (24 Jun 2016 23:30:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Jun 2016 23:30:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 25 01:30:32 2016 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 1bGaYP-0005WQ-WA for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Jun 2016 01:30:30 +0200 Original-Received: from localhost ([::1]:47663 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGaYP-0001Fl-2P for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Jun 2016 19:30:29 -0400 X-Received: by 10.107.180.17 with SMTP id d17mr8409240iof.15.1466810913653; Fri, 24 Jun 2016 16:28:33 -0700 (PDT) X-Received: by 10.36.230.69 with SMTP id e66mr793165ith.0.1466774752818; Fri, 24 Jun 2016 06:25:52 -0700 (PDT) Original-Path: usenet.stanford.edu!news.glorb.com!jk6no79765igb.0!news-out.google.com!i62ni1761ith.0!nntp.google.com!jk6no79582igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=129.240.69.2; posting-account=ah2y9wgAAABWBvQAzI4Or28o7NSe1Hor Original-NNTP-Posting-Host: 129.240.69.2 User-Agent: G2/1.0 Injection-Date: Fri, 24 Jun 2016 23:28:33 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:218254 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:110563 Archived-At: Hi, I have the following printing problem. The local sys-administration, in their wisdom, has deactivated "lpr" and related commands, insofar they introduced a new ``improved'' print-system (via some Windows-servers) that requires I have to give my passwords (I work under Linux though.) As a consequence, I cannot currently print from within emacs. In this post here, I concentrate on the ``standard'' printing capabilities (like M-x lpr-buffer M-x ps-print-buffer and related commands) not on more complex stuff like printing the a dvi-file or similar from within inside a LaTeX buffer. I can ``export'' buffers to the file system and then invoke print on the export, but it's not a dignified way and I don't get much support (I guess as long as one can print from the Office-Suite, the computer is defined as ``up-and-running'') . Now: currently, the value of the variable lpr-command is "lpr" Unfortunately, doing (setq lpr-command "print") and changing the lpr-add-switches to avoid lpr-specifics there does not help. The message for M-x print-buffer is Usage: print [-a{1,2,3,4}] .... [-v] [file...] More information available from 'man print'. which perhaps indicates that the buffer I intended to print were now ``piped'' correctly into the print commant. Any ideas what I could do? I think I found a way around the problem that print wants a password, that seems not the problem, but I wonder if fiddling with the lpr-command will do any good? Where should I look? There are on the emacs-manual some tips how to print using some scripts, but that seems for Windows users, I work under linux, but lpr etc is decativated. thanks, Martin