emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Getting rid of the #+begin_example #+end_example in src blocks e


From: John Kitchin
Subject: Re: [O] Getting rid of the #+begin_example #+end_example in src blocks evaluation
Date: Thu, 27 Aug 2015 08:06:09 -0400

Put :results raw in the src header? 

On Thursday, August 27, 2015, Julien Cubizolles <address@hidden> wrote:
I'm trying to create a list of entries with timeshifts. I found this
very nice example:

#+begin_src emacs-lisp
(with-temp-buffer
  (insert "*** Cours
<2014-09-07 lun 8:45-12:00>")
  (goto-char (point-min))
  (org-clone-subtree-with-time-shift 30 "+1w")
  ;; ignore this
  (let ((str (buffer-string)))
     (set-text-properties 0 (length str) nil str) str))
#+end_src

but the results is bracketed by a

#+begin_example
*** Cours....
#+end_example

which can of course very easily be removed. Is there a way to get only
the headings ?

Julien.




--
John

-----------------------------------
Professor John Kitchin 
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]