From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Williams Subject: Re: Can't get 'sh' blocks working Date: Wed, 2 Jan 2013 13:11:01 -0600 Message-ID: <21A5E1E970CD46459ECBE86D6CC4B28C67D837C2@spexch01.WindLogics.local> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_21A5E1E970CD46459ECBE86D6CC4B28C67D837C2spexch01WindLog_" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqTiW-00022o-Md for emacs-orgmode@gnu.org; Wed, 02 Jan 2013 14:11:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TqTiS-000159-19 for emacs-orgmode@gnu.org; Wed, 02 Jan 2013 14:11:08 -0500 Received: from shrimp.windlogics.com ([216.245.170.164]:8573) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqTiR-000151-Nt for emacs-orgmode@gnu.org; Wed, 02 Jan 2013 14:11:03 -0500 Content-Language: en-US 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: "emacs-orgmode@gnu.org" --_000_21A5E1E970CD46459ECBE86D6CC4B28C67D837C2spexch01WindLog_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Sorry I forgot to include my version information: Emacs : GNU Emacs 24.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.4) of 2012-07-13 on x.windlogics.local Package: Org-mode version 7.8.11 current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-export-babel-evaluate nil org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-selec= t-beamer-code) org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command= -maybe org-babel-hide-result-toggle-maybe) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-com= mand-hook) org-occur-hook '(org-first-headline-recenter) org-export-html-preamble-format '(("en" "

Author: %a

\n

Date: %d

\n") ) org-metaup-hook '(org-babel-load-in-session-maybe) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-= modifiers) org-confirm-shell-link-function 'yes-or-no-p org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-after-todo-state-change-hook '(org-clock-out-if-current) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-config= ure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-export-html-postamble nil org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all = append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-resu= lt-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-m= aybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visi= bility-change) org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-export-blocks '((src org-babel-exp-src-block nil) (export-comment org-export-blocks-format-comment t) (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil)) org-export-first-hook '(org-beamer-initialize-open-trackers) org-export-interblocks '((src org-babel-exp-non-block-elements)) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-export-html-postamble-format '(("en" "

Author: %a (%e)=

\n

Date: %d

\n

Generated by= %c

\n") ) org-babel-load-languages '((emacs-lisp . t) (sh . t) (R . t)) org-alphabetical-lists t org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-confirm-babel-evaluate nil ) From: Ken Williams Sent: Wednesday, January 02, 2013 1:03 PM To: emacs-orgmode@gnu.org Subject: Can't get 'sh' blocks working I'm having some trouble getting 'sh' babel blocks to work. Here's a minima= l test case, with the output after pressing C-c C-c: #+begin_src sh echo foo #+end_src #+RESULTS: : Error: unexpected symbol in "echo foo" In my .emacs file, I have the following: (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . t) (sh . t) (R . t))) I tried to create a stack trace for this error, but I hit a snag when I did= "C-u M-x org-reload RET": "Cannot open load file: /usr/local/share/emacs/2= 4.1/lisp/org/org-agenda.el" . I'm not sure where that's coming from, I don= 't have any mention of agenda stuff in my .emacs. Any pointers for the 'sh' error or for getting a stack trace? Thanks. -- Ken Williams, Senior Research Scientist WindLogics http://windlogics.com ________________________________ CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the inte= nded recipient(s) and may contain confidential and privileged information. = Any unauthorized review, use, disclosure or distribution of any kind is str= ictly prohibited. If you are not the intended recipient, please contact the= sender via reply e-mail and destroy all copies of the original message. Th= ank you. --_000_21A5E1E970CD46459ECBE86D6CC4B28C67D837C2spexch01WindLog_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Sorry I forgot to incl= ude my version information:

 

Emacs  : GNU Emac= s 24.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.4)

of 2012-07-13 on x.win= dlogics.local

Package: Org-mode vers= ion 7.8.11

 

current state:

=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D

(setq

org-export-babel-evalu= ate nil

org-export-preprocess-= before-selecting-backend-code-hook '(org-beamer-select-beamer-code)

org-tab-first-hook '(o= rg-hide-block-toggle-maybe org-src-native-tab-command-maybe

   &nbs= p;            &= nbsp;     org-babel-hide-result-toggle-maybe)

org-speed-command-hook= '(org-speed-command-default-hook org-babel-speed-command-hook)<= /span>

org-occur-hook '(org-f= irst-headline-recenter)

org-export-html-preamb= le-format '(("en"

   &nbs= p;            &= nbsp;            &nb= sp;      "<p class=3D\"author\&q= uot;>Author: <a href=3D\"mailto:%e\">%a</a></p&= gt;\n<p class=3D\"date\">Date: %d</p>\n")

   &nbs= p;            &= nbsp;           &nbs= p;      )

org-metaup-hook '(org-= babel-load-in-session-maybe)

org-export-preprocess-= before-normalizing-links-hook '(org-remove-file-link-modifiers)<= /span>

org-confirm-shell-link= -function 'yes-or-no-p

org-export-latex-final= -hook '(org-beamer-amend-header org-beamer-fix-toc

   &nbs= p;            &= nbsp;           &nbs= p;  org-beamer-auto-fragile-frames

   &nbs= p;            &= nbsp;           &nbs= p;  org-beamer-place-default-actions-for-lists)

org-export-latex-after= -initial-vars-hook '(org-beamer-after-initial-vars)

org-after-todo-state-c= hange-hook '(org-clock-out-if-current)

org-src-mode-hook '(or= g-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)<= /o:p>

org-agenda-before-writ= e-hook '(org-agenda-add-entry-text)

org-babel-pre-tangle-h= ook '(save-buffer)

org-export-html-postam= ble nil

org-mode-hook '(#[nil = "\300\301\302\303\304$\207"

   &nbs= p;            &= nbsp;  [org-add-hook change-major-mode-hook org-show-block-all append = local] 5]

   &nbs= p;             = #[nil "\300\301\302\303\304$\207"

   &nbs= p;            &= nbsp;  [org-add-hook change-major-mode-hook org-babel-show-result-all = append local] 5]

   &nbs= p;             = org-babel-result-hide-spec org-babel-hide-all-hashes)

org-ctrl-c-ctrl-c-hook= '(org-babel-hash-at-point org-babel-execute-safely-maybe)

org-cycle-hook '(org-c= ycle-hide-archived-subtrees org-cycle-hide-drawers

   &nbs= p;            &= nbsp; org-cycle-show-empty-lines org-optimize-window-after-visibility-chang= e)

org-export-latex-forma= t-toc-function 'org-export-latex-format-toc-default

org-export-blocks '((s= rc org-babel-exp-src-block nil)

   &nbs= p;            &= nbsp;    (export-comment org-export-blocks-format-comment t)=

   &nbs= p;            &= nbsp;    (ditaa org-export-blocks-format-ditaa nil)

   &nbs= p;            &= nbsp;    (dot org-export-blocks-format-dot nil))<= /span>

org-export-first-hook = '(org-beamer-initialize-open-trackers)

org-export-interblocks= '((src org-babel-exp-non-block-elements))

org-confirm-elisp-link= -function 'yes-or-no-p

org-metadown-hook '(or= g-babel-pop-to-session-maybe)

org-export-html-postam= ble-format '(("en"

   &nbs= p;            &= nbsp;           &nbs= p;        "<p class=3D\"aut= hor\">Author: %a (%e)</p>\n<p class=3D\"date\"&g= t;Date: %d</p>\n<p class=3D\"creator\">Generated by %= c</p>\n")

   &nbs= p;            &= nbsp;            &nb= sp;      )

org-babel-load-languag= es '((emacs-lisp . t) (sh . t) (R . t))

org-alphabetical-lists= t

org-clock-out-hook '(o= rg-clock-remove-empty-clock-drawer)

org-confirm-babel-eval= uate nil

)

 

From: Ken Will= iams
Sent: Wednesday, January 02, 2013 1:03 PM
To: emacs-orgmode@gnu.org
Subject: Can't get 'sh' blocks working

 

I’m having some trouble getting ‘sh̵= 7; babel blocks to work.  Here’s a minimal test case, with the o= utput after pressing C-c C-c:

 

#+begin_src sh

  echo foo

#+end_src

 

#+RESULTS:

: Error: unexpected symbol in "echo foo"

 

In my .emacs file, I have the following:<= /p>

 

(org-babel-do-load-languages

'org-babel-load-languages

'((emacs-lisp . t)

   (sh . t)

   (R . t)))

 

 

 

I tried to create a stack trace for this error, but = I hit a snag when I did “C-u M-x org-reload RET”: “Cannot= open load file: /usr/local/share/emacs/24.1/lisp/org/org-agenda.el” = .  I’m not sure where that’s coming from, I don’t ha= ve any mention of agenda stuff in my .emacs.

 

Any pointers for the ‘sh’ error or for g= etting a stack trace?  Thanks.

 

--

Ken Williams, Senior Research Scientist

WindLogics

http://windlogics.= com

 



CONFIDENTIALITY NOTICE: Th= is e-mail message is for the sole use of the intended recipient(s) and may = contain confidential and privileged information. Any unauthorized review, u= se, disclosure or distribution of any kind is strictly prohibited. If you are not the intended recipient, please= contact the sender via reply e-mail and destroy all copies of the original= message. Thank you.
--_000_21A5E1E970CD46459ECBE86D6CC4B28C67D837C2spexch01WindLog_--