From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Guinea Subject: Error when =(stata . t)= added to =org-babel-do-load-languages= in an attempt to evaluate Stata code in org-mode Date: Sun, 8 Jan 2017 18:00:01 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114e796492cee10545982e27" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQIHC-0002lA-7C for emacs-orgmode@gnu.org; Sun, 08 Jan 2017 13:33:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQIH8-0005VO-Sz for emacs-orgmode@gnu.org; Sun, 08 Jan 2017 13:33:06 -0500 Received: from mail-db5eur01on0081.outbound.protection.outlook.com ([104.47.2.81]:47552 helo=EUR01-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cQIH6-0005Ux-It for emacs-orgmode@gnu.org; Sun, 08 Jan 2017 13:33:02 -0500 Received: by mail-qk0-f181.google.com with SMTP id s140so97651768qke.0 for ; Sun, 08 Jan 2017 09:00:15 -0800 (PST) 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" To: emacs-orgmode@gnu.org --001a114e796492cee10545982e27 Content-Type: text/plain; charset="UTF-8" Hello, I have built the latest Emacs 26.0.50.1 on a Debian OS 8 (Jessie) that uses Linux version 3.14.5. Then I installed org-mode version 9.0.3. I want to use the proprietary data analysis and statistical software Stata version 14. I have checked that it runs alright within Emacs thanks to ESS by typing =M-x stata=. 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) 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) eval(inferior-STA-program-name) custom-initialize-reset(org-babel-stata-command inferior-STA-program-name) custom-declare-variable(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) eval-buffer(# nil "/home/dgm/.emacs.d/elpa/org-20161224/ob-stata.el" nil t) ; Reading at buffer position 2975 load-with-code-conversion("/home/dgm/.emacs.d/elpa/org-20161224/ob-stata.el" "/home/dgm/.emacs.d/elpa/org-20161224/ob-stata.el" nil t) require(ob-stata) (if active (require (intern (concat "ob-" lang))) (funcall (quote fmakunbound) (intern (concat "org-babel-execute:" lang))) (funcall (quote fmakunbound) (intern (concat "org-babel-expand-body:" lang)))) (let ((active (cdr pair)) (lang (symbol-name (car pair)))) (if active (require (intern (concat "ob-" lang))) (funcall (quote fmakunbound) (intern (concat "org-babel-execute:" lang))) (funcall (quote fmakunbound) (intern (concat "org-babel-expand-body:" lang))))) (let ((pair (car --dolist-tail--))) (let ((active (cdr pair)) (lang (symbol-name (car pair)))) (if active (require (intern (concat "ob-" lang))) (funcall (quote fmakunbound) (intern (concat "org-babel-execute:" lang))) (funcall (quote fmakunbound) (intern (concat "org-babel-expand-body:" lang))))) (setq --dolist-tail-- (cdr --dolist-tail--))) (while --dolist-tail-- (let ((pair (car --dolist-tail--))) (let ((active (cdr pair)) (lang (symbol-name (car pair)))) (if active (require (intern (concat "ob-" lang))) (funcall (quote fmakunbound) (intern (concat "org-babel-execute:" lang))) (funcall (quote fmakunbound) (intern (concat "org-babel-expand-body:" lang))))) (setq --dolist-tail-- (cdr --dolist-tail--)))) (let ((--dolist-tail-- org-babel-load-languages)) (while --dolist-tail-- (let ((pair (car --dolist-tail--))) (let ((active (cdr pair)) (lang (symbol-name (car pair)))) (if active (require (intern (concat "ob-" lang))) (funcall (quote fmakunbound) (intern (concat "org-babel-execute:" lang))) (funcall (quote fmakunbound) (intern (concat "org-babel-expand-body:" lang))))) (setq --dolist-tail-- (cdr --dolist-tail--))))) 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))) eval-buffer(# nil "/home/dgm/.emacs.d/starter-kit-org.el" nil t) ; Reading at buffer position 2047 load-with-code-conversion("/home/dgm/.emacs.d/starter-kit-org.el" "/home/dgm/.emacs.d/starter-kit-org.el" nil nil) load("/home/dgm/.emacs.d/starter-kit-org.el" nil nil t) load-file("/home/dgm/.emacs.d/starter-kit-org.el") (progn (load-file exported-file) "Loaded") (if compile (progn (byte-compile-file exported-file (quote load)) "Compiled and loaded") (progn (load-file exported-file) "Loaded")) (message "%s %s" (if compile (progn (byte-compile-file exported-file (quote load)) "Compiled and loaded") (progn (load-file exported-file) "Loaded")) exported-file) (let* ((age (function (lambda (file) (float-time (time-subtract (current-time) (nth 5 ...)))))) (base-name (file-name-sans-extension file)) (exported-file (concat base-name ".el"))) (if (and (file-exists-p exported-file) (> (funcall age file) (funcall age exported-file))) nil (setq exported-file (car (last (org-babel-tangle-file file exported-file "emacs-lisp"))))) (message "%s %s" (if compile (progn (byte-compile-file exported-file (quote load)) "Compiled and loaded") (progn (load-file exported-file) "Loaded")) exported-file)) org-babel-load-file("/home/dgm/.emacs.d/starter-kit-org.org") starter-kit-load("starter-kit-org.org") eval-buffer(# nil "/home/dgm/.emacs.d/starter-kit.el" nil t) ; Reading at buffer position 3784 load-with-code-conversion("/home/dgm/.emacs.d/starter-kit.el" "/home/dgm/.emacs.d/starter-kit.el" nil nil) load("/home/dgm/.emacs.d/starter-kit.el" nil nil t) load-file("/home/dgm/.emacs.d/starter-kit.el") (progn (load-file exported-file) "Loaded") (if compile (progn (byte-compile-file exported-file (quote load)) "Compiled and loaded") (progn (load-file exported-file) "Loaded")) (message "%s %s" (if compile (progn (byte-compile-file exported-file (quote load)) "Compiled and loaded") (progn (load-file exported-file) "Loaded")) exported-file) (let* ((age (function (lambda (file) (float-time (time-subtract (current-time) (nth 5 ...)))))) (base-name (file-name-sans-extension file)) (exported-file (concat base-name ".el"))) (if (and (file-exists-p exported-file) (> (funcall age file) (funcall age exported-file))) nil (setq exported-file (car (last (org-babel-tangle-file file exported-file "emacs-lisp"))))) (message "%s %s" (if compile (progn (byte-compile-file exported-file (quote load)) "Compiled and loaded") (progn (load-file exported-file) "Loaded")) exported-file)) org-babel-load-file("/home/dgm/.emacs.d/starter-kit.org") eval-buffer(# nil "/home/dgm/.emacs.d/init.el" nil t) ; Reading at buffer position 4099 load-with-code-conversion("/home/dgm/.emacs.d/init.el" "/home/dgm/.emacs.d/init.el" t t) load("/home/dgm/.emacs.d/init" t t) ################# End of debugger message ################### I have checked that the file =ess-sta-d.el= located in =/.emacs.d/elpa/ess-20161101.215/lisp= has the line =(inferior-ess-program . inferior-STA-program-name)= included in the definition of the variable =STA-customize-alist= as follows: (defvar STA-customize-alist '((ess-local-customize-alist . 'STA-customize-alist) (ess-language . "STA") (ess-dialect . STA-dialect-name) (ess-suffix . "ado") (ess-mode-editing-alist . STA-editing-alist) (ess-mode-syntax-table . STA-syntax-table) (ess-mode-edit . 'STA-mode) (ess-help-sec-regex . ess-help-STA-sec-regex) (ess-help-sec-keys-alist . ess-help-STA-sec-keys-alist) (ess-loop-timeout . 500000 ) (ess-object-name-db-file . "ess-sta-namedb.el" ) (ess-help-web-search-command . " http://www.stata.com/search/?q=%s&restrict=&btnG=Search&client=stata&num=&output=xml_no_dtd&site=stata&ie=&oe=UTF-8&sort=&proxystylesheet=stata ") (ess-eval-linewise-function . #'stata-eval-linewise) (inferior-ess-font-lock-defaults . ess-STA-mode-font-lock-defaults) (inferior-ess-program . inferior-STA-program-name) (inferior-ess-objects-command . "describe\n") (inferior-ess-help-command . "help %s\n") ;; assumes set more off (inferior-ess-exit-command . "exit\n") ;; --more-- is necessary here (hangs otherwise if startup stata.msg is big) (inferior-ess-primary-prompt . "[.:] \\|--more--") (inferior-ess-secondary-prompt . "--more--") (comint-use-prompt-regexp . t) (inferior-ess-start-file . inferior-STA-start-file) ;"~/.ess-stata") (inferior-ess-start-args . inferior-STA-start-args) (ess-get-help-topics-function . 'ess-get-STA-help-topics) (inferior-ess-search-list-command . "set more off\n search()\n") (comment-start . "/\* ") (comment-end . " \*/") (comment-start-skip . "/\\*+ *") (comment-use-syntax . t) ;; needed for multiline (ess-execute-screen-options-command . "set linesize %s\n") ) "Variables to customize for Stata.") >From here on I am lost. I have checked the corresponding scripts for other languages and in them =inferior-ess-program= is also and correctly assigned to their inferior program name. I don't understand why this does not happen with Stata. Any help is greatly appreciated! I normally use R but Stata is the industry standard in econometrics and I am bound to use it when working with colleagues. Thank you very much, Daniel --001a114e796492cee10545982e27 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I have built the latest Emacs 26.0.50.1 on a= Debian OS 8 (Jessie) that
uses Linux version 3.14.5. Then I installed o= rg-mode version 9.0.3. I
want to use the proprietary data analysis and s= tatistical software
Stata version 14. I have checked that it runs alrigh= t within Emacs
thanks to ESS by typing=C2=A0 =3DM-x stata=3D.

How= ever, I also want to evaluate Stata code in org-mode documents. For that I = have
downloaded the script =3Dob-stata.el=3D by Ista Zahn and I have sav= ed it
together with the other =3Dob-sth.el=3D files in
=3D~/.emacs.d/= elpa/org-20161224=3D. Moreover, I have edited the entry:

(defcustom = org-babel-stata-command inferior-STA-program-name
=C2=A0 "Name of c= ommand to use for executing stata code."
=C2=A0 :group 'org-bab= el
=C2=A0 :version "24.1"
=C2=A0 :package-version '(Org= . "8.3")
=C2=A0 :type 'string)

to reflect my curre= nt version of Org, so this piece of code currently
stands as follows in = my version of=C2=A0 =3Dob-stata.el=3D:

(defcustom org-babel-stata-co= mmand inferior-STA-program-name
=C2=A0 "Name of command to use for = executing stata code."
=C2=A0 :group 'org-babel
=C2=A0 :vers= ion "24.1"
=C2=A0 :package-version '(Org . "9.0.3&quo= t;)
=C2=A0 :type 'string)


However, if I add =3D(stata . t= )=3D to =3Dorg-babel-do-load-languages=3D as follows:

(org-babel-do-= load-languages
=C2=A0=C2=A0 'org-babel-load-languages
=C2=A0 '= ;((emacs-lisp . t)
=C2=A0=C2=A0=C2=A0 (sh . t)
=C2=A0=C2=A0=C2=A0 (R = . t)
=C2=A0=C2=A0=C2=A0 (perl . t)
=C2=A0=C2=A0=C2=A0 (ruby . t)
= =C2=A0=C2=A0=C2=A0 (python . t)
=C2=A0=C2=A0=C2=A0 (js . t)
=C2=A0=C2= =A0=C2=A0 (haskell . t)
=C2=A0=C2=A0=C2=A0 (stata . t)
=C2=A0=C2=A0= =C2=A0 (shell . t)))

I get the following message when I restart emac= s:

#################=C2=A0 Beginning of debugger message ###########= ########

Debugger entered--Lisp error: (void-variable inferior-STA-p= rogram-name)
=C2=A0 eval(inferior-STA-program-name)
=C2=A0 custom-ini= tialize-reset(org-babel-stata-command inferior-STA-program-name)
=C2=A0 = custom-declare-variable(org-babel-stata-command inferior-STA-program-name &= quot;Name of command to use for executing stata code." :group org-babe= l :version "24.1" :package-version (Org . "9.0.3") :typ= e string)
=C2=A0 eval-buffer(#<buffer=C2=A0 *load*-437726> nil &qu= ot;/home/dgm/.emacs.d/elpa/org-20161224/ob-stata.el" nil t)=C2=A0 ; Re= ading at buffer position 2975
=C2=A0 load-with-code-conversion("/ho= me/dgm/.emacs.d/elpa/org-20161224/ob-stata.el" "/home/dgm/.emacs.= d/elpa/org-20161224/ob-stata.el" nil t)
=C2=A0 require(ob-stata)=C2=A0 (if active (require (intern (concat "ob-" lang))) (funcal= l (quote fmakunbound) (intern (concat "org-babel-execute:" lang))= ) (funcall (quote fmakunbound) (intern (concat "org-babel-expand-body:= " lang))))
=C2=A0 (let ((active (cdr pair)) (lang (symbol-name (car= pair)))) (if active (require (intern (concat "ob-" lang))) (func= all (quote fmakunbound) (intern (concat "org-babel-execute:" lang= ))) (funcall (quote fmakunbound) (intern (concat "org-babel-expand-bod= y:" lang)))))
=C2=A0 (let ((pair (car --dolist-tail--))) (let ((act= ive (cdr pair)) (lang (symbol-name (car pair)))) (if active (require (inter= n (concat "ob-" lang))) (funcall (quote fmakunbound) (intern (con= cat "org-babel-execute:" lang))) (funcall (quote fmakunbound) (in= tern (concat "org-babel-expand-body:" lang))))) (setq --dolist-ta= il-- (cdr --dolist-tail--)))
=C2=A0 (while --dolist-tail-- (let ((pair (= car --dolist-tail--))) (let ((active (cdr pair)) (lang (symbol-name (car pa= ir)))) (if active (require (intern (concat "ob-" lang))) (funcall= (quote fmakunbound) (intern (concat "org-babel-execute:" lang)))= (funcall (quote fmakunbound) (intern (concat "org-babel-expand-body:&= quot; lang))))) (setq --dolist-tail-- (cdr --dolist-tail--))))
=C2=A0 (l= et ((--dolist-tail-- org-babel-load-languages)) (while --dolist-tail-- (let= ((pair (car --dolist-tail--))) (let ((active (cdr pair)) (lang (symbol-nam= e (car pair)))) (if active (require (intern (concat "ob-" lang)))= (funcall (quote fmakunbound) (intern (concat "org-babel-execute:"= ; lang))) (funcall (quote fmakunbound) (intern (concat "org-babel-expa= nd-body:" lang))))) (setq --dolist-tail-- (cdr --dolist-tail--)))))=C2=A0 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)))
=C2=A0 eval-buffer(#<buffer=C2=A0 *load= *-405315> nil "/home/dgm/.emacs.d/starter-kit-org.el" nil t)= =C2=A0 ; Reading at buffer position 2047
=C2=A0 load-with-code-conversio= n("/home/dgm/.emacs.d/starter-kit-org.el" "/home/dgm/.emacs.= d/starter-kit-org.el" nil nil)
=C2=A0 load("/home/dgm/.emacs.d= /starter-kit-org.el" nil nil t)
=C2=A0 load-file("/home/dgm/.e= macs.d/starter-kit-org.el")
=C2=A0 (progn (load-file exported-file)= "Loaded")
=C2=A0 (if compile (progn (byte-compile-file export= ed-file (quote load)) "Compiled and loaded") (progn (load-file ex= ported-file) "Loaded"))
=C2=A0 (message "%s %s" (if = compile (progn (byte-compile-file exported-file (quote load)) "Compile= d and loaded") (progn (load-file exported-file) "Loaded")) e= xported-file)
=C2=A0 (let* ((age (function (lambda (file) (float-time (t= ime-subtract (current-time) (nth 5 ...)))))) (base-name (file-name-sans-ext= ension file)) (exported-file (concat base-name ".el"))) (if (and = (file-exists-p exported-file) (> (funcall age file) (funcall age exporte= d-file))) nil (setq exported-file (car (last (org-babel-tangle-file file ex= ported-file "emacs-lisp"))))) (message "%s %s" (if comp= ile (progn (byte-compile-file exported-file (quote load)) "Compiled an= d loaded") (progn (load-file exported-file) "Loaded")) expor= ted-file))
=C2=A0 org-babel-load-file("/home/dgm/.emacs.d/starter-kit-org.org")
=C2=A0 st= arter-kit-load("starter-kit-org= .org")
=C2=A0 eval-buffer(#<buffer=C2=A0 *load*-847456> n= il "/home/dgm/.emacs.d/starter-kit.el" nil t)=C2=A0 ; Reading at = buffer position 3784
=C2=A0 load-with-code-conversion("/home/dgm/.e= macs.d/starter-kit.el" "/home/dgm/.emacs.d/starter-kit.el" n= il nil)
=C2=A0 load("/home/dgm/.emacs.d/starter-kit.el" nil ni= l t)
=C2=A0 load-file("/home/dgm/.emacs.d/starter-kit.el")
= =C2=A0 (progn (load-file exported-file) "Loaded")
=C2=A0 (if c= ompile (progn (byte-compile-file exported-file (quote load)) "Compiled= and loaded") (progn (load-file exported-file) "Loaded"))=C2=A0 (message "%s %s" (if compile (progn (byte-compile-file ex= ported-file (quote load)) "Compiled and loaded") (progn (load-fil= e exported-file) "Loaded")) exported-file)
=C2=A0 (let* ((age = (function (lambda (file) (float-time (time-subtract (current-time) (nth 5 .= ..)))))) (base-name (file-name-sans-extension file)) (exported-file (concat= base-name ".el"))) (if (and (file-exists-p exported-file) (> = (funcall age file) (funcall age exported-file))) nil (setq exported-file (c= ar (last (org-babel-tangle-file file exported-file "emacs-lisp"))= ))) (message "%s %s" (if compile (progn (byte-compile-file export= ed-file (quote load)) "Compiled and loaded") (progn (load-file ex= ported-file) "Loaded")) exported-file))
=C2=A0 org-babel-load-= file("/home/dgm/.emacs.d/starter-ki= t.org")
=C2=A0 eval-buffer(#<buffer=C2=A0 *load*> nil &qu= ot;/home/dgm/.emacs.d/init.el" nil t)=C2=A0 ; Reading at buffer positi= on 4099
=C2=A0 load-with-code-conversion("/home/dgm/.emacs.d/init.e= l" "/home/dgm/.emacs.d/init.el" t t)
=C2=A0 load("/h= ome/dgm/.emacs.d/init" t t)
#################=C2=A0 End of debugger= message ###################

I have checked that the file =3Dess-sta= -d.el=3D located in
=3D/.emacs.d/elpa/ess-20161101.215/lisp=3D has the l= ine
=3D(inferior-ess-program=C2=A0 . inferior-STA-program-name)=3D inclu= ded in the
definition of the variable =3DSTA-customize-alist=3D as follo= ws:

(defvar STA-customize-alist
=C2=A0 '((ess-local-customize= -alist=C2=A0=C2=A0=C2=A0=C2=A0 . 'STA-customize-alist)
=C2=A0=C2=A0= =C2=A0 (ess-language=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 . "STA")
=C2= =A0=C2=A0=C2=A0 (ess-dialect=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 . STA-diale= ct-name)
=C2=A0=C2=A0=C2=A0 (ess-suffix=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 . "ado")
=C2=A0=C2=A0=C2=A0 (ess-mode-editing-alist=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 . STA-editing-alist)
=C2=A0=C2= =A0=C2=A0 (ess-mode-syntax-table=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 . STA-syntax-table)
=C2=A0=C2=A0=C2=A0 (ess-mode-edit=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 . 'STA-mode)
=C2=A0=C2=A0=C2=A0 (ess-help-sec-regex=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 . ess-help-STA= -sec-regex)
=C2=A0=C2=A0=C2=A0 (ess-help-sec-keys-alist=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 . ess-help-STA-sec-keys-alist)
=C2=A0=C2=A0=C2=A0 = (ess-loop-timeout=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 . 500000 )
=C2=A0=C2=A0=C2=A0 (ess-object-name-db-= file=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 . "ess-sta-namedb.el" )<= br>=C2=A0=C2=A0=C2=A0 (ess-help-web-search-command=C2=A0=C2=A0 . "http://www.= stata.com/search/?q=3D%s&restrict=3D&btnG=3DSearch&client=3Dsta= ta&num=3D&output=3Dxml_no_dtd&site=3Dstata&ie=3D&oe=3DU= TF-8&sort=3D&proxystylesheet=3Dstata")
=C2=A0=C2=A0=C2= =A0 (ess-eval-linewise-function=C2=A0=C2=A0=C2=A0 . #'stata-eval-linewi= se)
=C2=A0=C2=A0=C2=A0 (inferior-ess-font-lock-defaults . ess-STA-mode-f= ont-lock-defaults)
=C2=A0=C2=A0=C2=A0 (inferior-ess-program=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 . inferior-STA-program-name)
= =C2=A0=C2=A0=C2=A0 (inferior-ess-objects-command=C2=A0 . "describe\n&q= uot;)
=C2=A0=C2=A0=C2=A0 (inferior-ess-help-command=C2=A0=C2=A0=C2=A0=C2= =A0 . "help %s\n") ;; assumes set more off
=C2=A0=C2=A0=C2=A0 = (inferior-ess-exit-command=C2=A0=C2=A0=C2=A0=C2=A0 . "exit\n")=C2=A0=C2=A0=C2=A0 ;; --more-- is necessary here (hangs otherwise if start= up stata.msg is big)
=C2=A0=C2=A0=C2=A0 (inferior-ess-primary-prompt=C2= =A0=C2=A0 . "[.:] \\|--more--")
=C2=A0=C2=A0=C2=A0 (inferior-e= ss-secondary-prompt . "--more--")
=C2=A0=C2=A0=C2=A0 (comint-u= se-prompt-regexp=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 . t)
=C2=A0=C2=A0=C2=A0 (= inferior-ess-start-file=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 . inferior-STA-= start-file) ;"~/.ess-stata")
=C2=A0=C2=A0=C2=A0 (inferior-ess-= start-args=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 . inferior-STA-start-args)=C2=A0=C2=A0=C2=A0 (ess-get-help-topics-function=C2=A0 . 'ess-get-STA= -help-topics)
=C2=A0=C2=A0=C2=A0 (inferior-ess-search-list-command=C2=A0= =C2=A0 . "set more off\n search()\n")
=C2=A0=C2=A0=C2=A0 (comm= ent-start=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 . "/\* ")
=C2=A0=C2=A0=C2=A0 (comment= -end=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 . " \*/")
=C2=A0=C2=A0=C2=A0= (comment-start-skip=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 . "/\\*+ *")
=C2=A0=C2=A0=C2=A0 (comment-use-syntax=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 . t) ;; needed fo= r multiline
=C2=A0=C2=A0=C2=A0 (ess-execute-screen-options-command . &qu= ot;set linesize %s\n")
=C2=A0=C2=A0=C2=A0 )
=C2=A0 "Variabl= es to customize for Stata.")

From here on I am lost. I have che= cked the corresponding scripts for
other languages and in them =3Dinferi= or-ess-program=3D is also and correctly
assigned to their inferior progr= am name. I don't understand why this
does not happen with Stata.
=
Any help is greatly appreciated! I normally use R but Stata is
the i= ndustry standard in econometrics and I am bound to use it when
working = with colleagues.

Thank you very much,
Daniel


--001a114e796492cee10545982e27--