emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Getting rid of the #+begin_example #+end_example in src blocks evaluation
@ 2015-08-27 11:08 Julien Cubizolles
  2015-08-27 12:06 ` John Kitchin
  0 siblings, 1 reply; 3+ messages in thread
From: Julien Cubizolles @ 2015-08-27 11:08 UTC (permalink / raw)
  To: emacs-orgmode

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-08-27 12:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-27 11:08 Getting rid of the #+begin_example #+end_example in src blocks evaluation Julien Cubizolles
2015-08-27 12:06 ` John Kitchin
2015-08-27 12:14   ` Julien Cubizolles

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).