unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: Pierre Lorenzon <devel@pollock-nageoire.net>
Cc: help-gnu-emacs@gnu.org
Subject: Re: DocView: process ps->pdf changed status to killed.
Date: Tue, 07 Oct 2014 11:07:01 +0200	[thread overview]
Message-ID: <87oatouu2y.fsf@thinkpad-t440p.tsdh.org> (raw)
In-Reply-To: <20141007.102533.2212875331518577085.devel@pollock-nageoire.net> (Pierre Lorenzon's message of "Tue, 07 Oct 2014 10:25:33 +0200 (CEST)")

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.

Bye,
Tassilo



  reply	other threads:[~2014-10-07  9:07 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-01 17:06 DocView: process ps->pdf changed status to killed Pierre Lorenzon
2014-10-02 10:25 ` Tassilo Horn
2014-10-02 12:36   ` Stefan Monnier
2014-10-03 15:17     ` Pierre Lorenzon
2014-10-04  8:46       ` Tassilo Horn
2014-10-03 14:48   ` Pierre Lorenzon
2014-10-03 15:09   ` Pierre Lorenzon
2014-10-03 18:34     ` Tassilo Horn
2014-10-04  3:35       ` Pierre Lorenzon
2014-10-04  3:46       ` Pierre Lorenzon
2014-10-04  3:54         ` Pierre Lorenzon
2014-10-04  8:41           ` Tassilo Horn
2014-10-07  8:25             ` Pierre Lorenzon
2014-10-07  9:07               ` Tassilo Horn [this message]
2014-10-18  5:32                 ` Pierre Lorenzon
2014-10-19  8:23                   ` Tassilo Horn
2014-10-19 19:55                     ` Stefan Monnier
2014-10-21  9:02                     ` Tassilo Horn
2014-10-21 14:28                       ` Stefan Monnier
2014-10-21 14:54                         ` Tassilo Horn
     [not found]                         ` <mailman.11640.1413903303.1147.help-gnu-emacs@gnu.org>
2014-10-21 15:36                           ` Stefan Monnier
2014-10-21 19:15                             ` Tassilo Horn
2014-10-21 20:19                               ` Stefan Monnier
2014-10-22  6:00                                 ` Tassilo Horn
2014-10-22  7:16                                   ` Tassilo Horn
2014-10-22 12:34                                     ` Stefan Monnier
2014-10-22 13:36                                       ` Tassilo Horn
2014-10-23  5:11                                       ` Pierre Lorenzon
2014-10-23  6:14                                         ` Tassilo Horn
2014-10-23 12:01                                           ` Stefan Monnier
2014-10-23 19:18                                             ` Tassilo Horn
2014-10-24  6:04                                           ` Pierre Lorenzon
2014-10-24  6:36                                             ` Tassilo Horn
2014-10-24  9:10                                               ` Pierre Lorenzon
2014-10-24  9:24                                                 ` Pierre Lorenzon
2014-10-24 10:26                                                   ` Tassilo Horn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87oatouu2y.fsf@thinkpad-t440p.tsdh.org \
    --to=tsdh@gnu.org \
    --cc=devel@pollock-nageoire.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).