From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: We're doing it wrong. [WAS]: Zip utility on Windows for ODT exporter Date: Wed, 27 Mar 2013 17:04:32 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKySR-0007bv-8c for emacs-orgmode@gnu.org; Wed, 27 Mar 2013 18:04:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKySQ-0001is-5b for emacs-orgmode@gnu.org; Wed, 27 Mar 2013 18:04:35 -0400 Received: from mail-la0-x233.google.com ([2a00:1450:4010:c03::233]:35316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKySP-0001ij-Tz for emacs-orgmode@gnu.org; Wed, 27 Mar 2013 18:04:34 -0400 Received: by mail-la0-f51.google.com with SMTP id fo13so16643459lab.10 for ; Wed, 27 Mar 2013 15:04:33 -0700 (PDT) In-Reply-To: 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: "Loyall, David" Cc: emacs-orgmode On Wed, Mar 27, 2013 at 9:06 AM, Loyall, David wrote: >> Just tried [...X] and don't have the [... utility] that Org is looking for. > > And that's why civilized programs don't depend on external executables from $PATH. > > Now, I'd imagine that some people have argued in the past that org shouldn't depend on external executables. Clearly those arguments have failed. > > But, let's take a fresh look. How about this rule of thumb: don't depend on external executables **from $PATH**. That, and I'm not sure that "zip" was working on Windows anyway. I had to edit ox-taskjuggler and change it to "zip.exe." Could be wrong, as I ran into an issue where Wiz.exe from Info-zip gave an error when I renamed it zip.exe and said it "couldn't find itself." Thus, I named it back to Wiz.exe and created a hardlink to it called zip.exe. I tried renaming to just 'zip' to satisfy Org, but then Windows doesn't recognize it as an executable... Thus, I resorted to editing ox-taskjuggler on Windows to do it's path check on "zip.exe." > > Can we agree on that? > > How about: don't depend on external executables from $PATH, but allow the user to override via config. > > This is important on the 'reproducible research' front. > Agree -- let the user specify the path to the thing to use. Kind of like this: #+begin_doc org-ditaa-jar-path is a variable defined in `org-exp-blocks.el'. Its value is "~/.elisp/org.git/contrib/scripts/ditaa.jar" Documentation: Path to the ditaa jar executable. #+end_doc > Cheers, > --Dave Thanks for chiming in. John