help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing from emacs


From: Kai Großjohann
Subject: Re: Printing from emacs
Date: Sun, 27 Apr 2003 13:53:52 +0200
User-agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (gnu/linux)

"Brian Poole" <send-your-spam-here@microsoft.com> 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)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]