* Printing from emacs
@ 2003-04-25 6:43 Brian Poole
2003-04-25 8:28 ` Joerg Schuster
2003-04-25 9:38 ` Glenn Morris
0 siblings, 2 replies; 13+ messages in thread
From: Brian Poole @ 2003-04-25 6:43 UTC (permalink / raw)
When I select print buffer from the file menu I get the following error:
"Searching for program: no such file or directory, lpr"
How can I configure emacs to use lp instead of lpr?
Thanks
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Printing from emacs
2003-04-25 6:43 Printing from emacs Brian Poole
@ 2003-04-25 8:28 ` Joerg Schuster
2003-04-25 9:38 ` Glenn Morris
1 sibling, 0 replies; 13+ messages in thread
From: Joerg Schuster @ 2003-04-25 8:28 UTC (permalink / raw)
Cc: help-gnu-emacs
Though this is not really an answer to your question:
Consider using M-x ps-print-buffer.
Jörg
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Printing from emacs
2003-04-25 6:43 Printing from emacs Brian Poole
2003-04-25 8:28 ` Joerg Schuster
@ 2003-04-25 9:38 ` Glenn Morris
2003-04-25 11:07 ` Brian Poole
1 sibling, 1 reply; 13+ messages in thread
From: Glenn Morris @ 2003-04-25 9:38 UTC (permalink / raw)
"Brian Poole" wrote:
> When I select print buffer from the file menu I get the following error:
>
> "Searching for program: no such file or directory, lpr"
>
> How can I configure emacs to use lp instead of lpr?
Type C-h k, then click on "print buffer". You will get a description
of the command that has the information you need. In particular, see
`lpr-command'.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Printing from emacs
2003-04-25 9:38 ` Glenn Morris
@ 2003-04-25 11:07 ` Brian Poole
2003-04-25 15:20 ` Kevin Rodgers
2003-04-26 14:18 ` Kai Großjohann
0 siblings, 2 replies; 13+ messages in thread
From: Brian Poole @ 2003-04-25 11:07 UTC (permalink / raw)
On Fri, 25 Apr 2003 10:38:18 +0100, Glenn Morris wrote:
> Type C-h k, then click on "print buffer". You will get a description of
> the command that has the information you need. In particular, see
> `lpr-command'.
I changed lpr-command to lp. When I select print-buffer now I get the
error message:
searching for program: success,
Why doesn't lpr-command execute lp?
Thanks
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Printing from emacs
2003-04-25 11:07 ` Brian Poole
@ 2003-04-25 15:20 ` Kevin Rodgers
2003-04-25 23:52 ` Brian Poole
2003-04-26 14:18 ` Kai Großjohann
1 sibling, 1 reply; 13+ messages in thread
From: Kevin Rodgers @ 2003-04-25 15:20 UTC (permalink / raw)
Brian Poole wrote:
> I changed lpr-command to lp. When I select print-buffer now I get the
> error message:
> searching for program: success,
Is there more error message text? What's at the end of the *Messages* buffer?
> Why doesn't lpr-command execute lp?
I don't know. What happens if you do this:
C-x h
M-| lp RET
--
<a href="mailto:<kevin.rodgers@ihs.com>">Kevin Rodgers</a>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Printing from emacs
2003-04-25 15:20 ` Kevin Rodgers
@ 2003-04-25 23:52 ` Brian Poole
0 siblings, 0 replies; 13+ messages in thread
From: Brian Poole @ 2003-04-25 23:52 UTC (permalink / raw)
On Fri, 25 Apr 2003 09:20:54 -0600, Kevin Rodgers wrote:
> Is there more error message text? What's at the end of the *Messages*
> buffer?
apply: Searching for program: success,
> I don't know. What happens if you do this:
> C-x h
> M-| lp RET
The message buffer prints out.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Printing from emacs
2003-04-25 11:07 ` Brian Poole
2003-04-25 15:20 ` Kevin Rodgers
@ 2003-04-26 14:18 ` Kai Großjohann
2003-04-27 3:00 ` Brian Poole
1 sibling, 1 reply; 13+ messages in thread
From: Kai Großjohann @ 2003-04-26 14:18 UTC (permalink / raw)
"Brian Poole" <send-your-spam-here@microsoft.com> writes:
> I changed lpr-command to lp. When I select print-buffer now I get the
> error message:
> searching for program: success,
Please M-x toggle-debug-on-error RET, reproduce the above error
message, then show us the resulting backtrace.
It doesn't help you, but it helps us help you.
--
file-error; Data: (Opening input file no such file or directory ~/.signature)
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Printing from emacs
2003-04-26 14:18 ` Kai Großjohann
@ 2003-04-27 3:00 ` Brian Poole
2003-04-27 11:53 ` Kai Großjohann
0 siblings, 1 reply; 13+ messages in thread
From: Brian Poole @ 2003-04-27 3:00 UTC (permalink / raw)
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" "")
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)
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Printing from emacs
2003-04-27 3:00 ` Brian Poole
@ 2003-04-27 11:53 ` Kai Großjohann
2003-04-28 9:46 ` Brian Poole
0 siblings, 1 reply; 13+ messages in thread
From: Kai Großjohann @ 2003-04-27 11:53 UTC (permalink / raw)
"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)
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Printing from emacs
2003-04-27 11:53 ` Kai Großjohann
@ 2003-04-28 9:46 ` Brian Poole
2003-04-28 10:27 ` Kai Großjohann
0 siblings, 1 reply; 13+ messages in thread
From: Brian Poole @ 2003-04-28 9:46 UTC (permalink / raw)
> So do M-x
> load-library RET lpr.el RET (the .el part is important) and retry.
I got an error
cannot open load file lpr.el
> 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.
Thanks for the help but I think I will just use the work around: M-x | lp
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Printing from emacs
2003-04-28 9:46 ` Brian Poole
@ 2003-04-28 10:27 ` Kai Großjohann
2003-04-29 7:50 ` Brian Poole
0 siblings, 1 reply; 13+ messages in thread
From: Kai Großjohann @ 2003-04-28 10:27 UTC (permalink / raw)
"Brian Poole" <send-your-spam-here@microsoft.com> writes:
>> So do M-x
>> load-library RET lpr.el RET (the .el part is important) and retry.
>
> I got an error
> cannot open load file lpr.el
Gah? Which Emacs?
--
file-error; Data: (Opening input file no such file or directory ~/.signature)
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Printing from emacs
2003-04-28 10:27 ` Kai Großjohann
@ 2003-04-29 7:50 ` Brian Poole
2003-04-29 21:42 ` Matthew Kennedy
0 siblings, 1 reply; 13+ messages in thread
From: Brian Poole @ 2003-04-29 7:50 UTC (permalink / raw)
> Gah? Which Emacs?
GNU Emacs 21.2.1 (i386-debianlinux-gnu, X toolkit, Xaw3d scroll bars) of
2002-03-23 on raven, modified by Debian
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Printing from emacs
2003-04-29 7:50 ` Brian Poole
@ 2003-04-29 21:42 ` Matthew Kennedy
0 siblings, 0 replies; 13+ messages in thread
From: Matthew Kennedy @ 2003-04-29 21:42 UTC (permalink / raw)
"Brian Poole" <send-your-spam-here@microsoft.com> writes:
> > Gah? Which Emacs?
>
> GNU Emacs 21.2.1 (i386-debianlinux-gnu, X toolkit, Xaw3d scroll bars) of
> 2002-03-23 on raven, modified by Debian
You need to install emac21-el.
--
Matthew Kennedy
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2003-04-29 21:42 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-25 6:43 Printing from emacs Brian Poole
2003-04-25 8:28 ` Joerg Schuster
2003-04-25 9:38 ` Glenn Morris
2003-04-25 11:07 ` Brian Poole
2003-04-25 15:20 ` Kevin Rodgers
2003-04-25 23:52 ` Brian Poole
2003-04-26 14:18 ` Kai Großjohann
2003-04-27 3:00 ` Brian Poole
2003-04-27 11:53 ` Kai Großjohann
2003-04-28 9:46 ` Brian Poole
2003-04-28 10:27 ` Kai Großjohann
2003-04-29 7:50 ` Brian Poole
2003-04-29 21:42 ` Matthew Kennedy
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.