emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] org-program-exists vs executable-find


From: Sebastien Vauban
Subject: Re: [O] org-program-exists vs executable-find
Date: Fri, 20 Apr 2012 22:24:59 +0200
User-agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (windows-nt)

Hi Bastien,

Bastien wrote:
> "Sebastien Vauban" <address@hidden> writes:
>
>>> The name `org-program-exists' is actually misleading, it should be
>>> `org-executable-call' instead, while still checking if the executable
>>> exists before calling it.
>>
>> Nope, the name is not misleading. The documentation string is false -- what
>> I hadn't noticed, btw.
>>
>> That function just checks if the executable can be found; it does _not_
>> call it afterward.
>
> You're right, I just fixed the docstring.
>
>> On Linux and Mac OS, it just calls "which + <program name>", no more... On
>> Windows, it simply fails immediately (even if the program could be found).
>
> If there is an equivalent of `which' on windows let me know,

Not that I know, reason why I (must) have Cygwin...

> we can generalize this function.

Why not replacing it simply by `executable-find': I don't see what it adds to
it?  I would not say so if it was some upper abstraction, but I do feel
they're simply the same.

If not, the opposite should be done: replacing the 10 calls to
`executable-find' by calls to `org-program-exists'...

Best regards,
  Seb

-- 
Sebastien Vauban




reply via email to

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