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

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

Re: Cygwin/NTEmacs Printing Problem


From: Eli Zaretskii
Subject: Re: Cygwin/NTEmacs Printing Problem
Date: Mon, 17 Nov 2003 21:08:16 +0200

> From: address@hidden (steven)
> Newsgroups: gnu.emacs.help
> Date: 17 Nov 2003 01:02:50 -0800
> 
>   (setq lpr-command "cat2file")
> 
> under cygwin/bash:
>   $ cat 
>   #!/usr/bin/bash
>   TMPFILE=`mktemp -t emacs.print.XXXXX` || exit 1
>   cat >$TMPFILE
> 
> I dit this because I hope the 'ps-print-xxx' command can generate and
> save a ps file for me.

If all you need is to get the PS output on a file, you don't need all
this trickery: when ps-print-* commands are invoked with a numeric
argument, they automatically prompt for a file name and leave the PS
stuff on that file.

> But, when I invoked the 'ps-print-xxx' in NTEmacs, I always got
> following error:
>   "searching for program: no such file or directory, cat2file"

I suspect that the value of PATH as known to Emacs does not include
the directory where you put cat2file.




reply via email to

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