emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: requesting help debugging tangle on windows
@ 2012-02-15 22:32 Andrew Cheng
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Cheng @ 2012-02-15 22:32 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 251 bytes --]

Reproduced the issue with a clean Emacs 24 on Windows with and without my
.emacs and .emacs.d on the same machine and on a different machine.

Is this message related? Could not read org-id-values from
~\.emacs.d\.org-id-locations. Setting it to nil.

[-- Attachment #2: Type: text/html, Size: 295 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread
* requesting help debugging tangle on windows
@ 2012-02-14 22:24 Andrew Cheng
  2012-02-18 15:16 ` Eric Schulte
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Cheng @ 2012-02-14 22:24 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 4439 bytes --]

Tangle works in my linux environment but doesn't quite work in my windows
environment. Here's my org file. It defines a code snippet named "block"
and then has a tangle section that refers to "block". Tangle results in a
file with two blank lines in my windows environment.

#+name: block
#+begin_src clojure :results silent
(+ 2 3)
#+end_src

#+begin_src clojure :tangle ../src/tmp.clj :results silent :exports none
:noweb yes
<<block>>
#+end_src

But --- If my tangle section has regular code in it instead of referring to
other named <<blocks>> then the resulting file after tangle has the code
you'd expect.

Below is my org setup. The *Messages* buffer doesn't contain any
interesting error messages. What can I do to find out what's going on?

I did evaluate the following snippet to get C-c C-c to properly evaluate a
clojure code block successfully on my machine. It didn't affect the issue
of tangling. Just thought I'd mention it to be thorough. The snippet is
from Eric Schulte. I thought that by deleting my elpa org folder and
starting emacs again I'd get the latest (with his fix) but I discovered
that I still needed to run this snippet to get C-c C-c to work.

Thanks in advance for any help!

(defun org-babel-execute:clojure (body params)
 "Execute a block of Clojure code with Babel."
 (require 'slime)
 (with-temp-buffer
   (insert (org-babel-expand-body:clojure body params))
   ((lambda (result)
      (let ((result-params (cdr (assoc :result-params params))))
        (if (or (member "scalar" result-params)
                (member "verbatim" result-params))
            result
          (condition-case nil (org-babel-script-escape result)
            (error result)))))
    (slime-eval
     `(swank:eval-and-grab-output
       ,(buffer-substring-no-properties (point-min) (point-max)))
     (cdr (assoc :package params))))))

Emacs  : GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2011-09-03 on SHAN-PC
Package: Org-mode version 7.7

current state:
==============
(setq
 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))
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-src-native-tab-command-maybe
                      org-babel-hide-result-toggle-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
org-cycle-show-empty-lines
                  org-optimize-window-after-visibility-change)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-babel-pre-tangle-hook '(save-buffer)
 org-occur-hook '(org-first-headline-recenter)
 org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src
org-babel-exp-inline-src-blocks))
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 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-result-all append local] 5]
                 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-from-is-user-regexp nil
 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-metadown-hook '(org-babel-pop-to-session-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-babel-tangle-lang-exts '(("clojure" . "clj") ("emacs-lisp" . "el"))
 org-confirm-shell-link-function 'yes-or-no-p
 )

[-- Attachment #2: Type: text/html, Size: 6094 bytes --]

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

end of thread, other threads:[~2012-02-20 15:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-15 22:32 requesting help debugging tangle on windows Andrew Cheng
  -- strict thread matches above, loose matches on Subject: below --
2012-02-14 22:24 Andrew Cheng
2012-02-18 15:16 ` Eric Schulte
2012-02-20 15:11   ` Andrew Cheng

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