From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leandro Henrique Oliveira Fernandes Subject: How to tangle org file with option comments yes in batch mode Date: Sat, 8 Aug 2015 22:03:04 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c07ee4ab4afff051cd9c8a9 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOIlG-0001Ld-Nv for emacs-orgmode@gnu.org; Sun, 09 Aug 2015 01:03:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOIlF-0003mS-Dj for emacs-orgmode@gnu.org; Sun, 09 Aug 2015 01:03:06 -0400 Received: from mail-yk0-x234.google.com ([2607:f8b0:4002:c07::234]:35144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOIlF-0003mC-8d for emacs-orgmode@gnu.org; Sun, 09 Aug 2015 01:03:05 -0400 Received: by ykdz80 with SMTP id z80so5811547ykd.2 for ; Sat, 08 Aug 2015 22:03:04 -0700 (PDT) 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 --94eb2c07ee4ab4afff051cd9c8a9 Content-Type: text/plain; charset=UTF-8 Hi, I am trying to tangle a file in batch mode using the script bellow: emacs.exe -Q --batch --no-init-file -l init.el --visit file.org -f org-babel-tangle --kill == init.el === (require 'org) (require 'org-exp) (require 'ob) (require 'ob-tangle) (require 'ob-R) (org-babel-do-load-languages 'org-babel-load-languages '((R . t) (latex . t) (sh . t) (plantuml . t) (emacs-lisp . t) )) ;; For windows (setq org-babel-R-command "\"C:/Users/XX/Documents/R/R3.2.0/bin/i386/Rterm.exe --ess --slave --no-save\"") == end file == And == file.org == -*- mode: org; mode: auto-fill; fill-column: 76 -*- # Babel settings #+PROPERTY: session *R* #+PROPERTY: comments yes #+PROPERTY: results output #+PROPERTY: exports none * Simple babel block #+name: setup_block #+begin_src R :tangle Rcode/setup_block.R :exports none :session proj.dir <- getwd() cat("Proj dir: ", proj.dir,"\n") #+end_src == end file == When I set #+PROPERTY: comments no, I am able to tangle the file file.org. However when I set #+PROPERTY: comments yes I have got this message: >>>>>>>> c:/Program\ Files\ \(x86\)/GNU\ Emacs\ 24.3/bin/emacs.exe -Q --batch --no-init-file -l init.el --visit file.org -f org-babel-tangle --kill OVERVIEW Loading vc-svn... (No changes need to be saved) No comment syntax is defined. Use: <<<<<< If I just press enter I end up with the error code: <<<<<< No comment syntax defined make: *** [tangle] Error 127 >>>> The file I want to tangle is a large file with a lot of org-babel blocks. I understand that the comment is not defined, but I don't know how to set it. I am running emacs on windows: GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) Org-mode version 8.3.1 Anyone can help me with that? Thanks, --94eb2c07ee4ab4afff051cd9c8a9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I am trying to tangle a file in bat= ch mode using the script bellow:

emacs.exe=C2=A0= =C2=A0-Q --batch --no-init-file -l init.el --visit file.org -f org-babel-tangle --kill

=3D=3D= init.el =3D=3D=3D

(require 'org)
(require 'org-exp)
(require 'ob)
(requir= e 'ob-tangle)
(require 'ob-R)

(o= rg-babel-do-load-languages
=C2=A0'org-babel-load-languages
=C2=A0'((R . t)
=C2=A0 =C2=A0(latex . t)
= =C2=A0 =C2=A0(sh . t)
=C2=A0 =C2=A0(plantuml . t)
=C2= =A0 =C2=A0(emacs-lisp . t)
=C2=A0 =C2=A0))

;; For windows
(setq org-babel-R-command "\"C:/Users= /XX/Documents/R/R3.2.0/bin/i386/Rterm.exe --ess --slave --no-save\"&qu= ot;)

=3D=3D end file =3D=3D

And=C2=A0

=3D=3D file.org =3D=3D=C2=A0

-*- mode: org; = mode: auto-fill; fill-column: 76 -*-

# Babel setti= ngs
#+PROPERTY: session *R*
#+PROPERTY: comments yes
#+PROPERTY: results output
#+PROPERTY: exports none
=


* Simple babel block

#+name: setup_block
#+begin_src R :tangle Rcode/setup_block= .R :exports none :session

=C2=A0 proj.dir <- ge= twd()
=C2=A0 cat("Proj dir: ", proj.dir,"\n")=

#+end_src

=3D=3D e= nd file =3D=3D

When I set #+PROPERTY: comments no,= I am able to tangle the file file.org. How= ever when I set=C2=A0=C2=A0#+PROPERTY: comments yes I have got this message= :

>>>>>>>>
= c:/Program\ Files\ \(x86\)/GNU\ Emacs\ 24.3/bin/emacs.exe -Q --batch --no-i= nit-file -l init.el --visit file.org -f org= -babel-tangle --kill
OVERVIEW
Loading vc-svn...
(No changes need to be saved)
No comment syntax is defined.=C2= =A0 Use:=C2=A0
<<<<<<=C2=A0
If I just press enter I end up with the error code:
<= br>
<<<<<<
No comment syntax def= ined
make: *** [tangle] Error 127
>>>>= ;

The file I want to tangle is a large file w= ith a lot of org-babel blocks. I understand that the comment is not defined= , but I don't know how to set it.

I am running= emacs on windows:
GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601)
=
Org-mode version 8.3.1

Anyone can help me wit= h that?

Thanks,

--94eb2c07ee4ab4afff051cd9c8a9--