GNU bug report logs -
#30063
26.0.90; Silent fail with `rst-compile-pdf-preview'
Previous Next
Reported by: Simen Heggestøyl <simenheg <at> gmail.com>
Date: Wed, 10 Jan 2018 13:58:01 UTC
Severity: minor
Found in version 26.0.90
Done: Simen Heggestøyl <simenheg <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 30063 <at> debbugs.gnu.org (full text, mbox):
Noam Postavsky wrote:
> Simen Heggestøyl <simenheg <at> gmail.com> writes:
>
>> (command (format "%s %s %s && %s %s ; rm %s"
>> + pdf-compile-program
>> buffer-file-name tmp-filename
>> rst-pdf-program tmp-filename tmp-filename)))
>> + (unless (executable-find pdf-compile-program)
>> + (error "Cannot find executable `%s'" pdf-compile-program))
>> + (unless (executable-find rst-pdf-program)
>> + (error "Cannot find executable `%s'" rst-pdf-program))
>
> It's possible to have PATH and exec-path desynchronized, such that the
> above code could throw an error even though the
> start-process-shell-command call later would succeed. Maybe we should
> should just consider that a misconfiguration on the user's part though.
Yes, I think PATH != exec-path is a user error.
BTW what happens with the above if the program is present, but fails for
some reason? Is nothing still shown to the user in that case?
Also, does it actually need to go through the shell?
This bug report was last modified 5 years and 285 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.