all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: printing from within emacs, without having "lpr"
Date: Sat, 25 Jun 2016 11:27:46 +0200	[thread overview]
Message-ID: <861t3l39f1.fsf@student.uu.se> (raw)
In-Reply-To: 48f24704-a25b-45de-a300-0671ddb93533@googlegroups.com

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 -                   


      reply	other threads:[~2016-06-25  9:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-24 13:25 printing from within emacs, without having "lpr" martin.sputnik
2016-06-25  0:09 ` Emanuel Berg
2016-06-25  6:38   ` martin.sputnik
2016-06-25  9:27     ` Emanuel Berg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=861t3l39f1.fsf@student.uu.se \
    --to=embe8573@student.uu.se \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.