From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Shiyuan Newsgroups: gmane.emacs.help Subject: Change how print behaves in printing.el Date: Wed, 10 Oct 2012 23:59:34 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8fb20730f520c604cbc16fe7 X-Trace: ger.gmane.org 1349931585 24324 80.91.229.3 (11 Oct 2012 04:59:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Oct 2012 04:59:45 +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 11 06:59:52 2012 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 1TMAsC-0006HW-0p for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Oct 2012 06:59:52 +0200 Original-Received: from localhost ([::1]:39113 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMAs5-0007gW-NE for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Oct 2012 00:59:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMArx-0007Xl-Fl for help-gnu-emacs@gnu.org; Thu, 11 Oct 2012 00:59:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMArv-0002qu-Pk for help-gnu-emacs@gnu.org; Thu, 11 Oct 2012 00:59:37 -0400 Original-Received: from mail-oa0-f41.google.com ([209.85.219.41]:50208) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMArv-0002qf-Ge for help-gnu-emacs@gnu.org; Thu, 11 Oct 2012 00:59:35 -0400 Original-Received: by mail-oa0-f41.google.com with SMTP id k14so1549020oag.0 for ; Wed, 10 Oct 2012 21:59:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=4ppZBeR6lsHsY3N9ftkj/wxyXb8VgR8tWJ3guA6P4gQ=; b=MHQIcUMSgJU7ndmvSvdu2y5k56ZkDjdDf8d6FL8S86A/XjFavyXssM44gVNHF77I0N hS7XhV+22gE94OlCoitg6mN2E6f3OBCKdiJrwFgX3Lq1e6q24SPtf0ZZBsvukl+ZTbc9 tZ2bECXXdoOiumFI829s1pxSC6YBLwoUlO/eFCXsWm+/LFDiK0TBYx8uTZWE1VsLAbI6 430UOiXAt40UokiCHOMDWIPF8SoJ28uAgKulQP5L43yQH/D0Gjfr0hFygDU/2mSPbtAH YfqIJ8oj8EILc4GnFEsuLkt6bZmZ6bX+iPQ1L+XvAIdp6LfdRJpmbd6VFh/GjYBaTgv3 adDQ== Original-Received: by 10.60.2.38 with SMTP id 6mr20995591oer.68.1349931574304; Wed, 10 Oct 2012 21:59:34 -0700 (PDT) Original-Received: by 10.182.26.110 with HTTP; Wed, 10 Oct 2012 21:59:34 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.219.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87163 Archived-At: --e89a8fb20730f520c604cbc16fe7 Content-Type: text/plain; charset=ISO-8859-1 Hi all, I am using printing.el package. Normally, when I hit the print in the printing interface, the printer will print the document. But I want to change this so that when I print, it will also leave a pdf copy of the document in the specified directory. Right now, I can do it in three steps, first use the postscript printer to print it to a .ps file, and then print the ps file from command line and convert the .ps file to .pdf file using ps2pdf. I am wondering can I write this into a emacs function/script, and ask printing.el to call this function every time I hit print in the printing interface? Thank you. --e89a8fb20730f520c604cbc16fe7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi all,=A0
=A0 =A0I am using printing.el package. Normally, when I hit = the print in the printing interface, =A0the printer will print the document= . But I want to change this so that when I print, it will also leave a pdf = copy of the document in the specified directory. Right now, I can do it in = three steps, first use the postscript printer to print it to a .ps file, an= d then print the ps file from command line and convert the .ps file to .pdf= file using ps2pdf. I am wondering can I write this into a emacs function/s= cript, and ask printing.el to call this function every time I hit print in = the printing interface? Thank you.=A0
=A0=A0
--e89a8fb20730f520c604cbc16fe7--