From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@gmx.net (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: Printing from emacs Date: Sun, 27 Apr 2003 13:53:52 +0200 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84u1ckxijz.fsf@lucy.is.informatik.uni-duisburg.de> References: <84bryte40p.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1051444976 24873 80.91.224.249 (27 Apr 2003 12:02:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 27 Apr 2003 12:02:56 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 27 14:02:53 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 199krs-0006Sc-00 for ; Sun, 27 Apr 2003 14:02:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 199kqW-0003WE-06 for gnu-help-gnu-emacs@m.gmane.org; Sun, 27 Apr 2003 08:01:29 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!p5087779a.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: p5087779a.dip.t-dialin.net (80.135.119.154) Original-X-Trace: fu-berlin.de 1051444579 9912183 80.135.119.154 (16 [73968]) Mail-Copies-To: never User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:ADY6DbydCvHyepIfoPpQV3TsNj8= Original-Xref: shelby.stanford.edu gnu.emacs.help:112399 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8899 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8899 "Brian Poole" writes: > On Sat, 26 Apr 2003 16:18:14 +0200, Kai Großjohann wrote: > >> Please M-x toggle-debug-on-error RET, reproduce the above error message, >> then show us the resulting backtrace. > > Debugger entered--Lisp error: (file-error "Searching for program" > "success" "") It seems it was searching for a program called "" (the empty string). Weird. > call-process-region(1 192 "" "/tmp/emacs5DAz26" t nil "-h" "*scratch* > Emacs buffer") apply(call-process-region 1 192 "" t t nil ("-h" > "*scratch* Emacs buffer")) print-region-1(1 192 nil t) > print-buffer() > call-interactively(print-buffer) This backtrace appears to be a bit short. As you can see, it invoked print-region-1. C-h f tells you it's defined in lpr. So do M-x load-library RET lpr.el RET (the .el part is important) and retry. I think this gives you a better backtrace. Have a look in the source: M-x find-function RET print-region-1 RET. Then search for "process". This finds the following statement: (apply 'call-process-region (car new-coords) (cdr new-coords) lpr-page-header-program t t nil (nconc (list "-h" title) lpr-page-header-switches)) As you can see, it invokes lpr-page-header-program. I'm guessing the value of this variable is "", the empty string. -- file-error; Data: (Opening input file no such file or directory ~/.signature)