From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: export of src block ignores :results Date: Thu, 29 Sep 2016 20:39:08 -0700 Message-ID: References: <87r383ky0w.fsf@biostat.ku.dk> <87a8eqv5x2.fsf@biostat.ku.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpofK-00087l-Ea for emacs-orgmode@gnu.org; Thu, 29 Sep 2016 23:39:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpofH-0005my-9B for emacs-orgmode@gnu.org; Thu, 29 Sep 2016 23:39:14 -0400 Received: from iport-acv6-out.ucsd.edu ([132.239.0.13]:61541) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpofH-0005mc-0G for emacs-orgmode@gnu.org; Thu, 29 Sep 2016 23:39:11 -0400 In-Reply-To: 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" To: Thomas Alexander Gerds Cc: emacs-orgmode@gnu.org 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