From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Getting rid of the #+begin_example #+end_example in src blocks evaluation Date: Thu, 27 Aug 2015 08:06:09 -0400 Message-ID: References: <874mjl7zuw.fsf@free.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113d6cd4f40576051e49ca8a Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUvwa-0005YQ-1z for emacs-orgmode@gnu.org; Thu, 27 Aug 2015 08:06:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUvwY-0008Gj-RD for emacs-orgmode@gnu.org; Thu, 27 Aug 2015 08:06:11 -0400 Received: from mail-oi0-x22f.google.com ([2607:f8b0:4003:c06::22f]:34917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUvwY-0008Gd-Mc for emacs-orgmode@gnu.org; Thu, 27 Aug 2015 08:06:10 -0400 Received: by oigk185 with SMTP id k185so4126682oig.2 for ; Thu, 27 Aug 2015 05:06:10 -0700 (PDT) In-Reply-To: <874mjl7zuw.fsf@free.fr> 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: Julien Cubizolles Cc: "emacs-orgmode@gnu.org" --001a113d6cd4f40576051e49ca8a Content-Type: text/plain; charset=UTF-8 Put :results raw in the src header? On Thursday, August 27, 2015, Julien Cubizolles 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 --001a113d6cd4f40576051e49ca8a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Put :results raw in the src header?=C2=A0

On Thursday, = August 27, 2015, Julien Cubizolles <j.cubizolles@free.fr> 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
=C2=A0 (insert "*** Cours
<2014-09-07 lun 8:45-12:00>")
=C2=A0 (goto-char (point-min))
=C2=A0 (org-clone-subtree-with-time-shift 30 "+1w")
=C2=A0 ;; ignore this
=C2=A0 (let ((str (buffer-string)))
=C2=A0 =C2=A0 =C2=A0(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=C2=A0?

Julien.




--
John
=
-----------------------------------
Professor John Kitchin=C2=A0
= Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon= University
Pittsburgh, PA 15213
412-268-7803

--001a113d6cd4f40576051e49ca8a--