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

* Re: Getting rid of the #+begin_example #+end_example in src blocks evaluation
  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
  0 siblings, 1 reply; 3+ messages in thread
From: John Kitchin @ 2015-08-27 12:06 UTC (permalink / raw)
  To: Julien Cubizolles; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 941 bytes --]

Put :results raw in the src header?

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
>   (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

[-- Attachment #2: Type: text/html, Size: 1438 bytes --]

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

* Re: Getting rid of the #+begin_example #+end_example in src blocks evaluation
  2015-08-27 12:06 ` John Kitchin
@ 2015-08-27 12:14   ` Julien Cubizolles
  0 siblings, 0 replies; 3+ messages in thread
From: Julien Cubizolles @ 2015-08-27 12:14 UTC (permalink / raw)
  To: emacs-orgmode

John Kitchin <jkitchin@andrew.cmu.edu> writes:

> Put :results raw in the src header?

Thank you! 

^ 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).