From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: org-program-exists vs executable-find Date: Fri, 20 Apr 2012 13:22:42 +0200 Message-ID: <87mx66zlz1.fsf@altern.org> References: <80mx69us0v.fsf@somewhere.org> <874nshjhnq.fsf@altern.org> <80aa29umso.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLBuE-0001W5-Kb for emacs-orgmode@gnu.org; Fri, 20 Apr 2012 07:21:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SLBu9-0003OB-A5 for emacs-orgmode@gnu.org; Fri, 20 Apr 2012 07:21:38 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:54533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLBu9-0003Nv-1R for emacs-orgmode@gnu.org; Fri, 20 Apr 2012 07:21:33 -0400 Received: by werj55 with SMTP id j55so7785834wer.0 for ; Fri, 20 Apr 2012 04:21:31 -0700 (PDT) In-Reply-To: <80aa29umso.fsf@somewhere.org> (Sebastien Vauban's message of "Wed, 18 Apr 2012 16:39:19 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: emacs-orgmode@gnu.org Hi Sébastien, "Sebastien Vauban" 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 + ", 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, we can generalize this function. Thanks, -- Bastien