From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: org-program-exists vs executable-find Date: Sat, 21 Apr 2012 12:13:56 +0200 Message-ID: <87obqle6jf.fsf@Rainer.invalid> References: <80mx69us0v.fsf@somewhere.org> <874nshjhnq.fsf@altern.org> <80aa29umso.fsf@somewhere.org> <87mx66zlz1.fsf@altern.org> <80ehrinobo.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:32842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLXKe-0002IA-LE for emacs-orgmode@gnu.org; Sat, 21 Apr 2012 06:14:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SLXKY-0000LQ-0P for emacs-orgmode@gnu.org; Sat, 21 Apr 2012 06:14:20 -0400 Received: from plane.gmane.org ([80.91.229.3]:59136) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLXKX-0000LL-QF for emacs-orgmode@gnu.org; Sat, 21 Apr 2012 06:14:13 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SLXKT-0003ej-NS for emacs-orgmode@gnu.org; Sat, 21 Apr 2012 12:14:09 +0200 Received: from pd9eb567e.dip.t-dialin.net ([217.235.86.126]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Apr 2012 12:14:09 +0200 Received: from Stromeko by pd9eb567e.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Apr 2012 12:14:09 +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: emacs-orgmode@gnu.org Sebastien Vauban writes: > 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. In principle, executable-find should (only) be used if the program in question is called directly from Emacs. If you invoke a shell to call a program, then that shell might have a completely different idea of what your path is and see different executables, so you'd have to check via the shell in this instance or provide the full absolute filename that executable-find gave you to the shell (which may have other problems when the path in Emacs and shell are indeed different). Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf rackAttack V1.04R1: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada