From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Daniel Guinea <daniel.guinea@poli.uned.es>
Cc: emacs-orgmode@gnu.org
Subject: Re: Error when =(stata . t)= added to =org-babel-do-load-languages= in an attempt to evaluate Stata code in org-mode
Date: Sun, 15 Jan 2017 09:41:07 +0100 [thread overview]
Message-ID: <87vatgu34s.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CALp4G6FqgiOCPOgkijxLv2HhFmjaWsKpiW=U+fPmZ=9BKbo04Q@mail.gmail.com> (Daniel Guinea's message of "Sun, 8 Jan 2017 18:00:01 +0100")
Hello,
Daniel Guinea <daniel.guinea@poli.uned.es> writes:
> However, I also want to evaluate Stata code in org-mode documents. For that
> I have
> downloaded the script =ob-stata.el= by Ista Zahn and I have saved it
> together with the other =ob-sth.el= files in
> =~/.emacs.d/elpa/org-20161224=. Moreover, I have edited the entry:
>
> (defcustom org-babel-stata-command inferior-STA-program-name
> "Name of command to use for executing stata code."
> :group 'org-babel
> :version "24.1"
> :package-version '(Org . "8.3")
> :type 'string)
>
> to reflect my current version of Org, so this piece of code currently
> stands as follows in my version of =ob-stata.el=:
>
> (defcustom org-babel-stata-command inferior-STA-program-name
> "Name of command to use for executing stata code."
> :group 'org-babel
> :version "24.1"
> :package-version '(Org . "9.0.3")
> :type 'string)
This part is not needed. :package-version is used to specify when
a defcustom was introduced or when its default value last changed.
> However, if I add =(stata . t)= to =org-babel-do-load-languages= as follows:
>
> (org-babel-do-load-languages
> 'org-babel-load-languages
> '((emacs-lisp . t)
> (sh . t)
> (R . t)
> (perl . t)
> (ruby . t)
> (python . t)
> (js . t)
> (haskell . t)
> (stata . t)
> (shell . t)))
>
> I get the following message when I restart emacs:
>
> ################# Beginning of debugger message ###################
>
> Debugger entered--Lisp error: (void-variable inferior-STA-program-name)
inferior-STAT-program-name is a variable defined in "ess-custom.el".
The error probably comes from the fact "ob-stata.el" is loaded before
"ess-custom.el" is.
You may want to tell the author of "ob-stata.el" about it. It is missing
a (require 'ess) somewhere in the library.
Regards,
--
Nicolas Goaziou
prev parent reply other threads:[~2017-01-15 8:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-08 17:00 Error when =(stata . t)= added to =org-babel-do-load-languages= in an attempt to evaluate Stata code in org-mode Daniel Guinea
2017-01-15 8:41 ` Nicolas Goaziou [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vatgu34s.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=daniel.guinea@poli.uned.es \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).