Matt Lundin | 23 Jul 01:52 2014

Possible to use src block to generate org headlines for export?

I am attempting to use a babel code snippet to generate org headlines
for export. However, I seem to be running into a corner case here.

AFAICT, the only way to generate headlines safely with babel is to wrap
them in a :RESULTS: drawer.

Take the following example:

--8<---------------cut here---------------start------------->8---
#+BEGIN_SRC perl :export results :results output org drawer
  print "* Headline One\n";
  print "* Headline Two\n";
  print "* Headline Three\n";
--8<---------------cut here---------------end--------------->8---

If I hit the source block, it creates wraps the output in a drawer. This
protects the results, so when executing the source block again, babel
correctly detects the drawer and replaces the output rather than
multiplying it indefinitely, as it does with "raw".

--8<---------------cut here---------------start------------->8---
* Headline One
* Headline Two
* Headline Three
--8<---------------cut here---------------end--------------->8---

(Continue reading)

Rasmus | 23 Jul 00:03 2014

[patch, ERT] emacs -q friendly interactive instructions


Here's a patch to the testing/README-documentation on the interactive
part.  I found that I had to do a couple of extra steps to run tests
interactively from emacs -q.



Nick Dokos | 22 Jul 23:32 2014

Test failure

I just pulled (HEAD is 02f2d5b42aabe9e272a5967ad0483b38750a8392)
and got this test failure:

| Test test-org-element/latex-environment-parser backtrace:
|   (if (not (unwind-protect (setq value-102202 (apply fn-102200 args-10
|   (let (form-description-102204) (if (not (unwind-protect (setq value-
|   (let ((value-102202 (quote ert-form-evaluation-aborted-102203))) (le
|   (let ((fn-102200 (function eq)) (args-102201 (list (quote latex-envi
|   (lambda nil (let ((value-102183 (cl-gensym "ert-form-evaluation-abor
|   #[0 "\306\307!r\211q\210\310\311\312\313\314\315!\316\"\317\320%DC
|   funcall(#[0 "\306\307!r\211q\210\310\311\312\313\314\315!\316\"\31
|   ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
|   #[0 "r\304 q\210\305 )\306\307\310\311\312\313!\314\"\315\316%DC\2
|   funcall(#[0 "r\304 q\210\305 )\306\307\310\311\312\313!\314\"\315\
|   ert-run-test([cl-struct-ert-test test-org-element/latex-environment-
|   ert-run-or-rerun-test([cl-struct-ert--stats "\\(org\\|ob\\)" [[cl-st
|   ert-run-tests("\\(org\\|ob\\)" #[385 "\306\307\"\203D\211\211G\310
|   ert-run-tests-batch("\\(org\\|ob\\)")
|   ert-run-tests-batch-and-exit("\\(org\\|ob\\)")
|   (let ((org-id-track-globally t) (org-test-selector (if org-test-sele
|   org-test-run-batch-tests("\\(org\\|ob\\)")
|   eval((org-test-run-batch-tests org-test-select-re))
|   command-line-1(("--eval" "(setq vc-handled-backends nil org-startup-
|   command-line()
|   normal-top-level()
| Test test-org-element/latex-environment-parser condition:
|     (ert-test-failed
|      ((should-not
(Continue reading)

Mark Scala | 22 Jul 22:35 2014

bug in lisp code blocks


This is probably a bug:

#+BEGIN_SRC lisp :results output
  (format t "Hello world.")
  ;; comment after, causes crash when block is evaluated with C-c C-c

Debugger message:
end of file on #<SB-IMPL::STRING-INPUT-STREAM {1003F862D3}>
   [Condition of type END-OF-FILE]

org-version: Org-mode version 8.3beta (release_8.3beta-51-g02f2d5  <at> 

Subhan Michael Tindall | 22 Jul 19:58 2014

Agenda/report of all headlines with clocked time

Hi, I’m looking to develop an agenda or even a list that will report the following for a buffer

Or for agenda-files:

All headlines with time clocked for the specified time range, or without time clocked for specified time range


IE by day or week

Must include headlines without a TODO status


The list in the *Clock Task Select* buffer is close,  but not quite there




Subhan Michael Tindall

Program Analyst – FamilyCare Health Plans

825 NE Multnomah St, Suite 1400; Portland OR 97232

Direct: 503-471-3127

Fax:      503-471-3177

Email:  subhant <at>


This message is intended for the sole use of the individual and entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message.  Thank you.
Nicolas Richard | 22 Jul 19:48 2014

Bug: [PATCH] Make org-narrow-to-subtree usable out of Org mode [8.2.7b (release_8.2.7b-6-g07d470 <at> /home/youngfrog/sourcetrees/org-mode/lisp/)]

Hello all,

org-narrow-to-subtree is very nice, and I now have C-x n s hard-wired
into my fingers, but it doesn't work when outline-regexp is too
different from org-outline-regexp in Outline-but-non-Org mode buffers.

It looked pretty easy to fix, so here is my suggestion, below. It should
be rather harmless since it only affects non-Org buffers (and might have
the nice side effect of allowing other commands to run in those buffers
-- but I haven't checked.)

From 70ccd90f98d07762d7ae228d67c387d674a69cee Mon Sep 17 00:00:00 2001
From: Nicolas Richard <theonewiththeevillook <at>>
Date: Tue, 22 Jul 2014 18:29:00 +0200
Subject: [PATCH] Make org-get-limited-outline-regexp usable outside of org.

This allows org-narrow-to-subtree to function in Outline mode.

* lisp/org-macs.el (org-get-limited-outline-regexp): Use
  outline-regexp instead of org-outline-regexp when not in Org mode.
 lisp/org-macs.el | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/lisp/org-macs.el b/lisp/org-macs.el
index 96265ec..78174df 100644
--- a/lisp/org-macs.el
+++ b/lisp/org-macs.el
 <at>  <at>  -352,11 +352,16  <at>  <at>  point nowhere."
 (defun org-get-limited-outline-regexp ()
   "Return outline-regexp with limited number of levels.
 The number of levels is controlled by `org-inlinetask-min-level'"
-  (if (or (not (derived-mode-p 'org-mode)) (not (featurep 'org-inlinetask)))
-      org-outline-regexp
-    (let* ((limit-level (1- org-inlinetask-min-level))
-	   (nstars (if org-odd-levels-only (1- (* limit-level 2)) limit-level)))
-      (format "\\*\\{1,%d\\} " nstars))))
+  (cond ((not (derived-mode-p 'org-mode))
+	 outline-regexp)
+	((not (featurep 'org-inlinetask))
+	 org-outline-regexp)
+	(t
+	 (let* ((limit-level (1- org-inlinetask-min-level))
+		(nstars (if org-odd-levels-only
+			    (1- (* limit-level 2))
+			  limit-level)))
+	   (format "\\*\\{1,%d\\} " nstars)))))

 (defun org-format-seconds (string seconds)
   "Compatibility function replacing format-seconds."


Alexander Artemenko | 22 Jul 10:07 2014

A way to show time effort estimates in the org-clock-report

Is there a way to show time effort estimates in the org-clock-report?
I found only that :properties ("Effort") could be specified, but it does not work
neither for one level, nor for summing children nodes' estimations.

Alexander Artemenko (a.k.a. Svetlyak 40wt)
Jabber: svetlyak.40wt <at>
SabreWolfy | 22 Jul 10:53 2014

Repeat task a fixed number of times

This repeats an event on the first of the month forever:

--8<---------------cut here---------------start------------->8---
* Attend Monthly Meeting
   <2014-05-01 +1m>
--8<---------------cut here---------------end--------------->8---

How do I indicate that the event should be repeated monthly for 6 months
only? Time-shift?

Fletcher Charest | 22 Jul 01:19 2014

[BUG] Weird behaviour just after a capture


I am confronted to this bug in every version of Org (shipped with Emacs, from maint, and from master). Here is how I can reproduce it every time:

1. emacs -Q (in my case GNU Emacs, with Org-mode version 8.2.3a)

2. Evaluate this code:

(setq org-capture-templates
      '(("t" "test" entry (file+olp "~/" "Todo" "Refile") "* TODO %?" :prepend t)))

3. Create the "~/" file like this:

* Todo
** Refile
* Other headline 1
* Other headline 2

4. M-x org-capture, then do a capture with t.

5. The cycling behaviour gets really weird in, from the captured task until the end of the file. It is just like if whole area was considered as a single line (this becomes apparent by turning hl-line-mode on). This error appears while trying to cycle with TAB in the area: "byte-code: Invalid search bound (wrong side of point)".

6. Close the file and reopen it: everything is fine.

Is anyone else confronted to this? I don't know if this is Emacs or Org-related.

Thank you very much,

Brett Viren | 22 Jul 00:12 2014

org-redisplay-inline-images and export to HTML

Someone recently posted a tip to add

  :post (org-redisplay-inline-images)

to a SRC block which generates an image in order to freshen the Emacs
buffer with the regenerated image each time the block is executed.  It
works *almost* fine but I have two problems which I hope someone can
help with.

1) Priming-the-pump

I'm using a document containing a GraphViz graph and running "dot" on it:

#+BEGIN_SRC dot :cmd dot :cmdline -Tpng :file foo.png :exports results :post
  digraph "foo" {
    params -> builders;
    builders -> objects;
    objects -> file;

I do "C-c C-c" in the block and the buffer does not display any result.
I see the messages:

No images to display inline
executing Dot code block...
Wrote /tmp/babel-11819Iqr/ob-input-11819Lrv
org-babel-ref-resolve: Reference 'No images to display inline' not found in this buffer

If I do "C-c hh" to export to HTML I see:

org-babel-exp processing...
No images to display inline [2 times]
executing Dot code block...
Wrote /tmp/babel-11819Iqr/ob-input-11819kTR
org-babel-ref-resolve: Reference 'No images to display inline' not found in this buffer

And I get no HTML file produced.

If I now take out the :post and do "C-c C-c" I get this appearing just
after the SRC block as expected:


If I now add back the ":post" and do "C-c C-c" again I get the inlined
image.  I can now edit the SRC block and repeat the "C-c C-c" and I am
pleased to see the figure refresh each time.  It's great!  But, it needs
this "pump priming".

2) Post-priming, still no HTML export

After this "priming the pump" is done the second problem is that still a
"C-c hh" does not produce an exported HTML file.  Similar messages:

org-babel-exp processing...
No images to display inline
Inline image display turned off
No images to display inline
executing Dot code block...
Wrote /tmp/babel-11819Iqr/ob-input-11819zYx
org-babel-ref-resolve: Reference 'No images to display inline' not found in this buffer

Finally, if I remove the :post but leave the "#+RESULTS:" I can do 
a successful "C-c hh".  

So, the upshot is I have to keep adding and removing the :post to make
things work in different contexts.  This is obviously not so smooth.

Is there some way to both have my cake an eat it too?

Manfred Lotz | 21 Jul 21:30 2014

minted question

Hi there,
I have a an org file which gets exported to beamer. The following
example (although I do not know if there are errors) works fine.

Now I would like to get a frame around the perl code, and also line
numbers. How can I define this in the org file?


Minimal example:

#+TITLE: My slides
#+AUTHOR: Manfred Lotz
#+EMAIL: manfred.lotz <at>
#+DATE: 2014-07-21
#+LaTeX_CLASS_options: [bigger, allowframebreaks]
#+LaTeX_HEADER: \usepackage{minted}
#+LaTeX_HEADER: \usemintedstyle{emacs}
#+OPTIONS: H:2 toc:t num:t
#+TOC: headlines [currentsection]
#+startup: beamer
* Introduction
** A simple slide
The following contains some perl code
- a minimal perl example
  #+BEGIN_SRC perl
  #! /usr/bin/perl

  use strict;
  use warnings;
  use 5.010;

  say 'hey';
- the previous point shows the use of the minted environment