From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yann Hodique Subject: [PATCH] Fix inconsistency in drawer handling Date: Sat, 15 Sep 2012 14:00:11 +0200 Message-ID: <1347710412-23188-1-git-send-email-yann.hodique@gmail.com> Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCr3T-0005aN-QP for emacs-orgmode@gnu.org; Sat, 15 Sep 2012 08:01:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCr3N-00037c-Rh for emacs-orgmode@gnu.org; Sat, 15 Sep 2012 08:00:59 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:55950) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCr3N-00037P-ML for emacs-orgmode@gnu.org; Sat, 15 Sep 2012 08:00:53 -0400 Received: by wibhn17 with SMTP id hn17so661653wib.12 for ; Sat, 15 Sep 2012 05:00:52 -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: emacs-orgmode@gnu.org Cc: Yann Hodique Hi, I've noticed that drawers are not managed similarly, depending on the workflow. More precisely, the end-of-drawer detection is not exactly the same for various exports, org-element, or folding. It all boils down to variations around (re-search-forward ":END:"). In particular, it's expected that property drawers for taskjuggler export will contain an :end: key (which is arguably a bad idea by itself), that fools some other parts of org. This patch is an attempt at making drawers handling more predictable. Thanks, Yann. Yann Hodique (1): Fix inconsistency in drawer handling lisp/org-element.el | 8 ++++---- lisp/org.el | 18 ++++++++++++------ 2 files changed, 16 insertions(+), 10 deletions(-) -- 1.7.12