From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jadamson@partners.org (Joel J. Adamson) Newsgroups: gmane.emacs.help Subject: Re: Printing fonts Date: Thu, 18 Oct 2007 14:00:56 -0400 Organization: Harvard University Message-ID: <8764141ew7.fsf@W0053328.mgh.harvard.edu> References: <87y7e4uskq.fsf@W0053328.mgh.harvard.edu> <3A2B8026-D31A-4B6B-A3C8-5982593D7B71@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1192732841 26240 80.91.229.12 (18 Oct 2007 18:40:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Oct 2007 18:40:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 18 20:40:42 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IiaIT-0001Vs-N3 for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Oct 2007 20:40:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiaIM-0003Uw-7V for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Oct 2007 14:40:34 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!news.glorb.com!newspeer1.asbnva01.us.to.verio.net!news.harvard.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: w0053328.mgh.harvard.edu Original-X-Trace: plato.harvard.edu 1192730628 8121 132.183.29.121 (18 Oct 2007 18:03:48 GMT) Original-X-Complaints-To: news@plato.harvard.edu Original-NNTP-Posting-Date: Thu, 18 Oct 2007 18:03:48 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (gnu/linux) Cancel-Lock: sha1:B5mjoEHgEuLsdMpZkBmK/TA7rB0= Original-Xref: shelby.stanford.edu gnu.emacs.help:153031 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:48535 Archived-At: jadamson@partners.org (Joel J. Adamson) writes: [...] > I only discovered enscript after writing my initial message. Here's a little function to do the hard work, suggestions welcome: (defun my-print-buffer (font) (interactive "sFont: ") (let ((cmd-string (format "enscript -u\"Joel J. Adamson\" --ul-font=Times-Roman100 --ul-style=filled -f%s -G --style=a2ps" font))) ;include page title of current buffer (shell-command-on-region (point-min) (point-max) cmd-string))) Can I split that string across lines? The comment is really a TODO; I tried inserting a page header like in a2ps, but "-b%s" corresponding to (buffer-name (current-buffer)) didn't work. Thanks, Joel -- Joel J. Adamson Biostatistician Pediatric Psychopharmacology Research Unit Massachusetts General Hospital Boston, MA 02114 (617) 643-1432 (303) 880-3109