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

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

Re: DocView: process ps->pdf changed status to killed.


From: Pierre Lorenzon
Subject: Re: DocView: process ps->pdf changed status to killed.
Date: Sat, 18 Oct 2014 07:32:46 +0200 (CEST)

Hi Tassilo




From: Tassilo Horn <tsdh@gnu.org>
Subject: Re: DocView: process ps->pdf changed status to killed.
Date: Tue, 07 Oct 2014 11:07:01 +0200

> Pierre Lorenzon <devel@pollock-nageoire.net> writes:
> 
> Hi Pierre,
> 
>>> Ok, I see.  But is it still true that the `start-process' form of my
>>> last mail worked, i.e., the process finished normally without being
>>> killed?  That would be strange since that's pretty much the same what
>>> doc-view does except that the latter might use a different
>>> `default-directory'.
>>> 
>>> So if it really worked, please try:
>>> 
>>> (let* ((default-directory (or (unhandled-file-name-directory
>>>                            default-directory)
>>>                           (expand-file-name "~/")))
>>>        (process (start-process "ps2pdf conversion"
>>>                            "ps2pdf conversion output"
>>>                            "ps2pdf"
>>>                            "-dSAFER"
>>>                            "/home/devel/test.ps"
>>>                            
>>> "/tmp/docview1001/test.ps-932911a0f86866e1b95b1aaf506a818b/doc.pdf")))
>>>   (set-process-sentinel process
>>>                         #'(lambda (proc event)
>>>                             (message "Process: %s had the event `%s'"
>>>                                      proc event))))  ;; C-x C-e here
>>> 
>>> Now that's really exactly what doc-view does.
>>
>>   Not really exactly as I see in the code since I saw a few
>>   supplementary things like recording the process in a list etc
>>   ...
> 
> Yes, true.
> 
>>   Anyway the code above gives finished since C-c C-c then y
>>   still gives killed in buffer test.ps. I will investigate more
>>   precisely but I have not much time at the moement.
> 
> Ok.  Then let's check if doc-view itself kills the txt conversion
> process.  To do that, please do `M-x trace-function RET
> doc-view-kill-proc RET' and try opening your document and convert it to
> text.

  Here is what I get in the trace buffer : 

======================================================================
1 -> doc-view-kill-proc: 
1 <- doc-view-kill-proc: nil
======================================================================
1 -> doc-view-kill-proc: 
1 <- doc-view-kill-proc: nil



  But I cannot interpret that !


  Pierre
> 
> Bye,
> Tassilo



reply via email to

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