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

2012-06-14 Thread Giovanni Ridolfi
Da: Sebastien Vauban Inviato: Venerdì 20 Aprile 2012 22:24 > Bastien wrote: >> If there is an equivalent of `which' on windows let me know, > Not that I know the command where [1][2] cheers, Giovanni [1] http://stackoverflow.com/questions/304319/is-there-an-equivalent-of-which-on-windows

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

2012-04-28 Thread Bastien
"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. Actually `executable-find' is faster and already available, so yes, I removed ̀org-pro

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

2012-04-21 Thread Achim Gratz
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 dir

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

2012-04-20 Thread Martyn Jago
Hi "Sebastien Vauban" writes: > Hi Bastien, > > Bastien wrote: >> "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 nam

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

2012-04-20 Thread Sebastien Vauban
Hi Bastien, Bastien wrote: > "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

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

2012-04-20 Thread Bastien
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 >

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

2012-04-18 Thread Sebastien Vauban
Hi Bastien, Bastien wrote: > "Sebastien Vauban" writes: > >> While browsing the Org code, I've found the function `org-program-exists': >> >> #+begin_src emacs-lisp >> (defun org-program-exists (program-name) >> "Checks whenever we can locate program and launch it." >> (if (member syste

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

2012-04-18 Thread Bastien
Hi Sébastien, "Sebastien Vauban" writes: > While browsing the Org code, I've found the function `org-program-exists': > > #+begin_src emacs-lisp > (defun org-program-exists (program-name) > "Checks whenever we can locate program and launch it." > (if (member system-type '(gnu/linux dar

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

2012-04-18 Thread Sebastien Vauban
Hello, While browsing the Org code, I've found the function `org-program-exists': #+begin_src emacs-lisp (defun org-program-exists (program-name) "Checks whenever we can locate program and launch it." (if (member system-type '(gnu/linux darwin)) (= 0 (call-process "which" nil ni