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: Mon, 10 Aug 2015 11:49:19 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c07ee4a7845ab051cf9710c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOs8T-0004TC-5Z for emacs-orgmode@gnu.org; Mon, 10 Aug 2015 14:49:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOs8P-0004Yt-Kt for emacs-orgmode@gnu.org; Mon, 10 Aug 2015 14:49:25 -0400 Received: from mail-yk0-x22f.google.com ([2607:f8b0:4002:c07::22f]:33289) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOs8P-0004YQ-Ei for emacs-orgmode@gnu.org; Mon, 10 Aug 2015 14:49:21 -0400 Received: by ykaz130 with SMTP id z130so39958324yka.0 for ; Mon, 10 Aug 2015 11:49:19 -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 --94eb2c07ee4a7845ab051cf9710c 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, emacs-or --94eb2c07ee4a7845ab051cf9710c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
= Hi,

I am trying to tangle a file in batch 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)
(require= 'ob-tangle)
(require 'ob-R)

(or= g-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\"")=

=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 settings
#+PROPERTY: session *R*
#+PROPERTY: c= omments yes
#+PROPERTY: results output
#+PROPERTY: expo= rts none


* Simple babel block
=

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

=C2=A0 pro= j.dir <- getwd()
=C2=A0 cat("Proj dir: ", proj.dir,&= quot;\n")

#+end_src

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

When I set #+PROPERTY= : comments no, I am able to tangle the file file.org. However when I set=C2=A0=C2=A0#+PROPERTY: comm= ents 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.=C2=A0 Use:=C2=A0
<<<<<<=C2=A0

If I just pre= ss 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 se= t 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,
=
=


emacs-or --94eb2c07ee4a7845ab051cf9710c--