From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [PATCH 1/2] lisp/ob.el: Fix org-babel-result-regexp to match users Date: Thu, 02 Jun 2011 12:20:03 -0600 Message-ID: <874o48ay36.fsf@gmail.com> References: <1307009045-10010-1-git-send-email-wence@gmx.li> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSCmK-0004BT-J9 for emacs-orgmode@gnu.org; Thu, 02 Jun 2011 14:37:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSCmH-00060W-Sm for emacs-orgmode@gnu.org; Thu, 02 Jun 2011 14:37:56 -0400 Received: from mail-pw0-f41.google.com ([209.85.160.41]:53591) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSCbk-00049r-B5 for emacs-orgmode@gnu.org; Thu, 02 Jun 2011 14:27:00 -0400 Received: by pwi12 with SMTP id 12so762278pwi.0 for ; Thu, 02 Jun 2011 11:26:59 -0700 (PDT) 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: Lawrence Mitchell Cc: emacs-orgmode@gnu.org Applied, Thanks -- Eric Lawrence Mitchell writes: > * 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 -- Eric Schulte http://cs.unm.edu/~eschulte/