From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: convert rmarkdown (rmd) files to orgmode? Date: Wed, 20 Jul 2016 10:42:15 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPvVx-00024C-Qt for emacs-orgmode@gnu.org; Wed, 20 Jul 2016 13:42:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPvVr-0006jv-PL for emacs-orgmode@gnu.org; Wed, 20 Jul 2016 13:42:32 -0400 Received: from iport-acv1-out.ucsd.edu ([132.239.0.176]:34888) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPvVr-0006jZ-Gf for emacs-orgmode@gnu.org; Wed, 20 Jul 2016 13:42:27 -0400 In-Reply-To: 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" To: Xebar Saram Cc: org mode , Philip Hudson On Wed, 20 Jul 2016, Xebar Saram wrote: > thx for the tips! > > when i try to run the source block : > > #+BEGIN_SRC emacs-lisp :results silent > (replace-regexp "^=[{]r \\([^}]*\\)[}]\\(.*\\)=$" > "#+name: \\1 > ,#+begin_src R > \\2 > ,#+end_src") > > #+END_SRC > > i just get a nil in the message area. what am i missing? > Nothing! The `:results silent' should suppress any output. Anyway, what you should see is that the code chunks that pandoc placed inside equal signs like : ={r my-name} code = are now in src blocks. I think you need to put the src block at the top or add a : (goto-char (point-min)) as its first line to be sure it converts all the code chunks. Chuck