From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: strange "feature" Date: Sat, 13 Oct 2012 19:02:24 +0200 Message-ID: <83r4p25mqn.fsf@gnu.org> References: <20121013162016.GA10794@Wes.ec.rr.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1350147744 32595 80.91.229.3 (13 Oct 2012 17:02:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Oct 2012 17:02:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: danny Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 13 19:02:31 2012 Return-path: Envelope-to: ged-emacs-devel@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 1TN56d-0008Dz-JK for ged-emacs-devel@m.gmane.org; Sat, 13 Oct 2012 19:02:31 +0200 Original-Received: from localhost ([::1]:56846 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TN56W-0007Hv-M5 for ged-emacs-devel@m.gmane.org; Sat, 13 Oct 2012 13:02:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TN56U-0007Ho-BZ for emacs-devel@gnu.org; Sat, 13 Oct 2012 13:02:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TN56T-0004yj-DU for emacs-devel@gnu.org; Sat, 13 Oct 2012 13:02:22 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:61205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TN56T-0004yb-5b for emacs-devel@gnu.org; Sat, 13 Oct 2012 13:02:21 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MBU00F00CCBUW00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Sat, 13 Oct 2012 19:02:19 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MBU00F99CNVG8D0@a-mtaout20.012.net.il>; Sat, 13 Oct 2012 19:02:19 +0200 (IST) In-reply-to: <20121013162016.GA10794@Wes.ec.rr.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:154309 Archived-At: > Date: Sat, 13 Oct 2012 12:20:16 -0400 > From: danny > > On Sat, Oct 13, 2012 at 04:58:27PM +0200, immanuel litzroth wrote: > > Opening a pdf file in emacs works really well. If you then try to > > print it it will happily > > print out a gazilion of text pages -- the pdf code. This behaviour > > seems strange in that is > > is almost certainly not what the user wants (he can > > find-file-literally and print that). > > I'm on emacs 23.3.1. > > Is there a way to print the pdf directly from emacs (as a pdf)? > > Immanuel > > > I've had issues with this "feature" as well, they keep me from printing most things in emacs. Does anyone at least know of a fix for this?(I think it's to do with docview not actually overriding the default print function) If this is on MS-Windows, you should be able to print a PDF file with this Lisp one-liner: (w32-shell-execute "print" "/path/to/file.pdf") This will work assuming that you have some program installed that can display and print PDF files, and that this program is associated with the .PDF extension.