From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Smirnov Subject: Re: [org-babel] [PATCH] Improve ditta.jar finding heuristics Date: Mon, 21 Nov 2011 12:16:08 +0700 Message-ID: <87pqgmt5rb.fsf@gmail.com> References: <87sjlij4oo.fsf@gmail.com> <874nxywwpy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSMEp-00042Z-V4 for emacs-orgmode@gnu.org; Mon, 21 Nov 2011 00:16:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RSMEo-0000aD-P1 for emacs-orgmode@gnu.org; Mon, 21 Nov 2011 00:16:15 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:52478) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSMEo-0000a6-Is for emacs-orgmode@gnu.org; Mon, 21 Nov 2011 00:16:14 -0500 Received: by bke17 with SMTP id 17so7099611bke.0 for ; Sun, 20 Nov 2011 21:16:13 -0800 (PST) In-Reply-To: <874nxywwpy.fsf@gmail.com> (Eric Schulte's message of "Sun, 20 Nov 2011 09:35:14 -0700") 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: Eric Schulte Cc: emacs-orgmode@gnu.org Eric Schulte writes: > Hi Andrey, > > The variable `org-ditaa-jar-path' can be used to specify a non-standard > location for the ditaa jar file. True, but my patch is not about doing away with `org-ditaa-jar-path' variable, it is about broadening the definition of "standard location" so to speak. Right now, being defined relatively to ob-ditaa.el, aforementioned standard location is at the mercy of what/whoever that is responsible for deciding where all the stuff belonging to emacs and org-mode goes. IMHO, that floating filesystem location is hardly more standard than the place where Distro X's package management tools place ditta.jar after installation. > Org-mode has *many* customization > variables, and for most problems a variable will exist to solve the > problem, I understand where you're coming from. True, it is not possible to handle all obscure and arcane cases, that's what all these variables are for, but I don't think that a situation where user installs ditaa and later emacs, both via the package management system and find themselves unable to draw awesome ditaa diagrams without looking a variable up in documentation, adding appropriate code to his configuration file and hitting C-x C-e is some sort of a fringe use-case. If only myself and maybe another person has ever hit that roadblock, than I agree, it is not worth adding any additional code, and I rest my case. > the `apropos' command can be very useful for finding these > variables. > Thanks for the tip, didn't know about that particular command. I usually use combination of C-h v and good old M-x download-the-source-and-look-how-the-thing-works :-). Andrey Smirnov