From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Problem with property matching Date: Tue, 26 Nov 2013 13:27:48 +0100 Message-ID: <4EE54E6B-582D-4E9B-A641-520E37AC26EA@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlHkG-0002DC-35 for emacs-orgmode@gnu.org; Tue, 26 Nov 2013 07:28:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlHk7-0002di-IP for emacs-orgmode@gnu.org; Tue, 26 Nov 2013 07:28:00 -0500 Received: from mail-ea0-x22d.google.com ([2a00:1450:4013:c01::22d]:62006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlHk7-0002dW-AZ for emacs-orgmode@gnu.org; Tue, 26 Nov 2013 07:27:51 -0500 Received: by mail-ea0-f173.google.com with SMTP id g15so3466679eak.4 for ; Tue, 26 Nov 2013 04:27:50 -0800 (PST) Received: from u019892.science.uva.nl (u019892.science.uva.nl. [146.50.53.231]) by mx.google.com with ESMTPSA id z1sm8527218eeo.14.2013.11.26.04.27.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Nov 2013 04:27:49 -0800 (PST) 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 List" Hi, I think there is an error in the property matching regexp. It will not = match a line where the property value is empty. I propose the following = change, which makes the value part optional: = --------------------------------------------------------------------------= ------ diff --git a/lisp/org.el b/lisp/org.el index 7a4d244..4641ce5 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -6205,7 +6205,7 @@ Use `org-reduced-level' to remove the effect of = `org-odd-levels'." Match group 3 will be set to the value if it exists." (concat "^\\(?4:[ \t]*\\)\\(?1::\\(?2:" (if literal property (regexp-quote property)) - "\\):\\)[ \t]+\\(?3:[^ \t\r\n].*?\\)\\(?5:[ \t]*\\)$")) + "\\):\\)\\([ \t]+\\(?3:[^ \t\r\n].*?\\)\\)?\\(?5:[ \t]*\\)$")) =20 (defconst org-property-re (org-re-property ".*?" 'literal) = --------------------------------------------------------------------------= ------ Can anyone think of problems this would cause? Nicolas, does the syntax = definition require a non-empty value? - Carsten=