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

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

bug#30063: 26.0.90; Silent fail with `rst-compile-pdf-preview'


From: Eli Zaretskii
Subject: bug#30063: 26.0.90; Silent fail with `rst-compile-pdf-preview'
Date: Tue, 30 Jan 2018 15:49:47 +0200

> From: Noam Postavsky <npostavs@users.sourceforge.net>
> Date: Sun, 28 Jan 2018 13:11:34 -0500
> Cc: stefan@merten-home.de, 30063@debbugs.gnu.org
> 
> Simen Heggestøyl <simenheg@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, we could do that.  But can we signal an error only when the
command fails?  That should minimize false negatives.

Also please note that the shell command as written is unportable: the
";" part will not work on MS-Windows, we need to use "&" instead.  But
that's a separate issue.





reply via email to

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