From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-expiry not compatible with the new drawer syntax Date: Fri, 30 Jan 2015 19:46:20 +0100 Message-ID: <87fvasp0n7.fsf@nicolasgoaziou.fr> References: <87lhkkg2bx.fsf@konixwork.incubateur.ens-lyon.fr> <877fw4r4yq.fsf@nicolasgoaziou.fr> <87wq44h8aq.fsf@konixwork.incubateur.ens-lyon.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHGZG-00054g-Vh for emacs-orgmode@gnu.org; Fri, 30 Jan 2015 13:45:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHGZ9-0001Uj-NH for emacs-orgmode@gnu.org; Fri, 30 Jan 2015 13:45:22 -0500 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:40030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHGZ9-0001UT-IH for emacs-orgmode@gnu.org; Fri, 30 Jan 2015 13:45:15 -0500 In-Reply-To: <87wq44h8aq.fsf@konixwork.incubateur.ens-lyon.fr> (Samuel Loury's message of "Fri, 30 Jan 2015 11:28:13 +0100") 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: Samuel Loury Cc: OrgMode ML Samuel Loury writes: > I suggest to provide a helper that would move point after the meta-data > part to avoid code duplication. Something like (no surprise :-)): > (defun org-goto-after-metadata-part () > (when (org-looking-at-p org-planning-line-re) (forward-line)) > (when (looking-at org-property-drawer-re) > (goto-char (match-end 0)) > (forward-line))) Indeed. > I would have gladly provided a patch myself but I couldn't find neither > a good name for the function nor a correct location to store it. Should > it be in org.el? It is already 24850 lines long... I changed `org-end-of-meta-data-and-drawers' into `org-end-of-meta-data'. Could you merge your other patch and the use of this function? Thanks,