From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Mitchell Subject: [PATCH 1/2] lisp/ob.el: Fix org-babel-result-regexp to match users Date: Thu, 2 Jun 2011 11:04:04 +0100 Message-ID: <1307009045-10010-1-git-send-email-wence@gmx.li> Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QS59C-0002EN-HE for emacs-orgmode@gnu.org; Thu, 02 Jun 2011 06:29:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QS59A-00018x-Ue for emacs-orgmode@gnu.org; Thu, 02 Jun 2011 06:29:02 -0400 Received: from garnet.epcc.ed.ac.uk ([129.215.56.222]:57429) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QS59A-000169-JS for emacs-orgmode@gnu.org; Thu, 02 Jun 2011 06:29:00 -0400 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: Lawrence Mitchell * lisp/ob.el (org-babel-result-regexp): Use non-shy group around org-babel-data-names. By default regexp-opt returns a shy group around its arguments. But users of org-babel-result-regexp expect the third match-string to contain the hash. With a shy group, the second match-string contains the hash. --- lisp/ob.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/ob.el b/lisp/ob.el index 27f005c..e1f4372 100644 --- a/lisp/ob.el +++ b/lisp/ob.el @@ -310,7 +310,7 @@ specific header arguments as well.") (defvar org-babel-result-regexp (concat "^[ \t]*#\\+" - (regexp-opt org-babel-data-names) + (regexp-opt org-babel-data-names t) "\\(\\[\\([[:alnum:]]+\\)\\]\\)?\\:[ \t]*") "Regular expression used to match result lines. If the results are associated with a hash key then the hash will -- 1.7.4.1