From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: printing from within emacs, without having "lpr" Date: Sat, 25 Jun 2016 11:27:46 +0200 Organization: Aioe.org NNTP Server Message-ID: <861t3l39f1.fsf@student.uu.se> References: <868txu2kpf.fsf@student.uu.se> <48f24704-a25b-45de-a300-0671ddb93533@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1466847033 6653 80.91.229.3 (25 Jun 2016 09:30:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Jun 2016 09:30:33 +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 11: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 1bGjv6-0003eS-3a for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Jun 2016 11:30:32 +0200 Original-Received: from localhost ([::1]:49120 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGjv5-0007Cu-Ao for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Jun 2016 05:30:31 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-NNTP-Posting-Host: EoOtCC1fCYcttx6jjhWUlA.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:HsbqQY5WfIKYOt8HJDDmRlOL7TA= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:218259 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:110568 Archived-At: martin.sputnik@gmail.com writes: > I meant, it'smore dignified to print a buffer > directly from emacs (as it is intended to be) > as opposed to write to file, and then print > from a shell or similar. Both ways are fine ways to do it. > Very silly actually: the problem was: the new > print command was "print". But it turned out > not to be the ``real'' print command, > it's a shell-script wrapper for the real > command "pushprint", perhaps print was deemed > more "userfriendly" terminology. Because 'print' is already often a built-in shell command (similar to echo) *and* and a symlink to a specific usage of mailcap (run-mailcap), shadowing it with yet another layer is bound to create confusion. > Unfortunately, the parameter passing does not > work properly in the wrapper, which means, > using "print" as "lpr-command" results in > that the buffer content gets lost on the way > and is not printed. With pushprint it works > (as long as I can avoid being asked for > password). Actually, the error message you got looked like mailcap! If the admins didn't set up the "pushprint" wrapper/alias in the -env file (e.g., .zshenv for zsh; should be something similar for bash) - if they didn't do that, even tho "print" is "pushprint" in the shell, it is still mailcap in Emacs! -- underground experts united .... http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic - so far: 55 Blogomatic articles -