jed-users mailing list

[2002 Date Index] [2002 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: print buffer


Guenter Milde <G.Milde@xxxxxxxxxxxxxxxxxxxx> wrote:

GM> On Sun, 21 Apr 2002 22:40:01 +0200 wrote Morten Bo Johansen <mojo@xxxxxxxx>:

>> I have a problem printing the buffer in nroff_mode. 
>> ...
>> Instead of printing the formatted document with grolbp some raw
>> s-lang debugging output is being sent to the printer and it
>> looks like this:
>> 
>>   Error: /typecheck in --closefile--

------------< snip <------< snip <------< snip <------------


GM> AFAIK, this is no slang output but a postscript error
GM> message. I get similar stuff sometimes when trying to view a
GM> ps-file with ghostview...

Hah, so much for my knowledge of either two ;)


>>   define print_buffer_nroff ()
>>   {
>>      push_spot ();
>>      mark_buffer ();
>>      variable status = pipe_region ("groff -mmdk -Tlbp | lpr -Praw1");
>>      pop_spot ();
>>      if (status) error ("lpr failed.");
>>   }

GM> Maybe you can find out more if you call your printing command
GM> "groff -mmdk -Tlbp | lpr -Praw1" with the right file argument
GM> from the command line (at least you can find out if it is
GM> something jed-related).


Well, the above command works from the command line, like e.g.

	groff -mmdk -Tlbp document.nroff | lpr -Praw1

and I believe I had it working from within Jed too at some
point but I must have changed something..

Any ideas?



Regards,

Morten

-- 
In capitalism, man exploits man.  In socialism, it's exactly the opposite.
                                 - Ben Tucker, famous vaudeville comedian

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2002 date index] [2002 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]