emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] export of src block ignores :results


From: Charles C. Berry
Subject: Re: [O] export of src block ignores :results
Date: Thu, 29 Sep 2016 20:39:08 -0700
User-agent: Alpine 2.20 (OSX 67 2015-01-07)

On Thu, 29 Sep 2016, Charles C. Berry wrote:

On Thu, 29 Sep 2016, Thomas Alexander Gerds wrote:

Hi Chuck

thanks for checking. my org-version is the same
release_8.3.6-1178-g2b22d5

to get the date and time of the in the results:

(setq org-babel-hash-show-time t)

but even without this option the results of the block are exported no
matter what. could someone point to the place in the export process
where the :results option is interpreted?

You probably want `org-babel-current-result-hash', which AFAICS does not recognize the `show-time' variant.

I think you'll need some regexp magic to make it work.

You might try this:


#+BEGIN_SRC emacs-lisp
  (setq org-babel-result-regexp
        (concat
         "^[       ]*#\\+RESULTS\\[\\(?:<[0-9]"
         "\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\} ?"
         "[0-2][0-9]:[0-6][0-9]:[0-6][0-9]> ?"
         "[^
\n[:alnum:]]*\\)?\\([[:alnum:]]+\\)"
         "\\]?:[   ]*"))
#+END_SRC


The line wrap after "[^ is due to C-M (you type C-q C-M to insert it if your email client messes with it and you need to redo it)

This seems like an innocuous change, but I haven't yet run this thru `make test' so beware.


Chuck



reply via email to

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