emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [babel] Maxima code blocks do not work
@ 2011-06-24 18:07 Bernd Weiss
  2011-06-27  8:34 ` Eric S Fraga
  0 siblings, 1 reply; 6+ messages in thread
From: Bernd Weiss @ 2011-06-24 18:07 UTC (permalink / raw)
  To: emacs-orgmode

Dear all,

The follwing Maxima code block does not work:

#+begin_src maxima
1+1;
#+end_src

#+results:
#+begin_example
incorrect syntax: / is not a prefix operator
incorrect syntax: GuM is not an infix operator
parser: incomplete number; missing exponent?
 -- an error. To debug this try: debugmode(true);
incorrect syntax: Too many )'s
incorrect syntax: Premature termination of input at $.
Maxima encountered a Lisp error:
 parser: end of file while scanning expression.
Automatically continuing.
To enable the Lisp debugger set *debugger-hook* to nil.
#+end_example


Thanks,

Bernd


Emacs  : GNU Emacs 23.3.1 (i386-mingw-nt6.1.7600)
 of 2011-03-10 on 3249CTO
Package: Org-mode version 7.5 (release_7.5.435.gd3100)

current state:
==============
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-export-latex-listings t
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-agenda-custom-commands '(("c" "conferences" ((tags "CONFERENCE"))
			       ((org-tags-match-list-sublevels nil))
			       ((org-columns-default-format "%DATE %LOCATION")))
			      ("d" "Upcoming deadlines" agenda ""
			       ((org-agenda-time-grid nil) (org-deadline-warning-days 365)
				(org-agenda-entry-types (quote (:deadline))))
			       )
			      ("W" "Weekly Review"
			       ((agenda "" ((org-agenda-ndays 14))) (todo "WRITING")))
			      )
 org-agenda-files '("e:/projects/org/agendas/")
 org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent)
 org-src-fontify-natively t
 org-babel-load-languages '((emacs-lisp . t) (maxima . t) (R . t)
(python . t) (latex . t)
			    (dot . t) (sh . t))
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-babel-tangle-lang-exts '(("latex" . "tex") ("python" . "py")
("emacs-lisp" . "el"))
 org-edit-src-content-indentation 0
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-src-native-tab-command-maybe
		      org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-export-latex-packages-alist '(("" "color") ("" "listings"))
 org-default-notes-file "e:/projects/org/agendas/capture.org"
 org-directory "e:/projects/org/"
 org-babel-pre-tangle-hook '(save-buffer)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
		  org-cycle-show-empty-lines org-optimize-window-after-visibility-change)
 org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-mode-hook '(org-mode-reftex-setup
		 #[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-result-all append
		    local]
		   5]
		 org-babel-result-hide-spec org-babel-hide-all-hashes turn-on-org-cdlatex
		 turn-on-auto-fill turn-on-font-lock turn-on-visual-line-mode)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob org-babel-exp-lob-one-liners)
			  (src org-babel-exp-inline-src-blocks))
 org-enforce-todo-dependencies t
 org-occur-hook '(org-first-headline-recenter)
 org-from-is-user-regexp nil
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-confirm-babel-evaluate nil
 org-hierarchical-checkbox-statistics nil
 org-src-tab-acts-natively t
 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-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-blocks '((src org-babel-exp-src-block nil)
		     (comment org-export-blocks-format-comment t)
		     (ditaa org-export-blocks-format-ditaa nil)
		     (dot org-export-blocks-format-dot nil))
 )

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [babel] Maxima code blocks do not work
@ 2011-06-27 20:37 Bernd Weiss
  2011-06-29 16:32 ` Eric S Fraga
  0 siblings, 1 reply; 6+ messages in thread
From: Bernd Weiss @ 2011-06-27 20:37 UTC (permalink / raw)
  To: emacs-orgmode

Am 27.06.2011 10:32, schrieb Eric S Fraga:
> Bernd Weiss <bernd.weiss@uni-koeln.de> writes:
> 
> [...]
> 
>> #+results:
>> : incorrect syntax: / is not a prefix operator
>> : incorrect syntax: aLH is not an infix operator
>> : incorrect syntax: hCp is not an infix operator
>> : incorrect syntax: Premature termination of input at $.
>> : Maxima encountered a Lisp error:
>> :  parser: end of file while scanning expression.
>> : Automatically continuing.
>> : To enable the Lisp debugger set *debugger-hook* to nil.
>>
>> This message is 'related' (see lines 3 "aLH is not an infix operator"
>> and 4 "hCp is not an infix operator") to the following Maxima call
>> ("aLH/maxima-17716hCp"):
>>
>> maxima --very-quiet -r
>> 'batchload("c:/Users/weiss/AppData/Local/Temp/babel-17716aLH/maxima-17716hCp")$'
>> nil
> 
> The error messages look like maxima is trying to evaluate the actual
> string within double quotes!
> 
>> Unfortunately, my elisp knowledge is too low to understand what's going
>> on in ob-maxima.el. Is it a MS-Windows-thing ('/' vs '\')?
> 
> Good question. Has anybody else used maxima with org babel on Windows?
> I don't even have such a system to try...  
> 
> My guess would be that the "shell" command required to invoke maxima on
> Windows needs to be significantly different than what we are using here
> (which works on Linux).  Then again, I've never really used Windows
> (beyond starting Word on somebody else's document on somebody else's
> machine... ;-) so I don't have a clue what Windows expects...

Hi Eric,

Again, thanks a lot for your help!

Okay, it definitely is a Windows problem. If I run the following command
in a cygwin shell, everything works as expected:

maxima --very-quiet -r
'batchload("c:/Users/weiss/AppData/Local/Temp/babel-17716aLH/maxima-17716hCp")$'
nil

However, it does not work in a Windows shell. But this is no longer an
org issue.

Bernd

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-06-29 17:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-24 18:07 [babel] Maxima code blocks do not work Bernd Weiss
2011-06-27  8:34 ` Eric S Fraga
2011-06-27 12:22   ` Bernd Weiss
2011-06-27 14:32     ` Eric S Fraga
  -- strict thread matches above, loose matches on Subject: below --
2011-06-27 20:37 Bernd Weiss
2011-06-29 16:32 ` Eric S Fraga

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).