From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Wiegley Subject: Re: bug in org-habits Date: Tue, 03 Nov 2015 16:56:54 -0500 Message-ID: References: <871tc83p01.fsf@flynn.nichework.com> <84io5j1k5h.fsf@gmail.com> <84611j19hk.fsf@gmail.com> <5638C2A1.2090801@iancu.ch> <87h9l32gfc.fsf@nicolasgoaziou.fr> <87d1vq3mh4.fsf@nicolasgoaziou.fr> <874mh23iw0.fsf@nicolasgoaziou.fr> <878u6eu5wg.fsf@Rainer.invalid> <315DDEDC-1BD9-4680-A8C8-B36821EB931C@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtjZf-0005ZN-2z for emacs-orgmode@gnu.org; Tue, 03 Nov 2015 16:57:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZtjZb-0006Uf-2n for emacs-orgmode@gnu.org; Tue, 03 Nov 2015 16:57:03 -0500 Received: from mail-qg0-x231.google.com ([2607:f8b0:400d:c04::231]:34948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtjZa-0006Ua-Rv for emacs-orgmode@gnu.org; Tue, 03 Nov 2015 16:56:59 -0500 Received: by qgbb65 with SMTP id b65so25696644qgb.2 for ; Tue, 03 Nov 2015 13:56:58 -0800 (PST) In-Reply-To: <315DDEDC-1BD9-4680-A8C8-B36821EB931C@gmail.com> (Jonathan Leech-Pepin's message of "Tue, 03 Nov 2015 16:48:03 -0500") 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: Jonathan Leech-Pepin Cc: Achim Gratz , emacs-orgmode@gnu.org >>>>> Jonathan Leech-Pepin writes: > Wouldn't last item in entry scale without issues? Find end of headline > (start of next or end of buffer) and search backwards. If first element from > end is a property drawer you have it, otherwise you still know there is > none. That sounds even better than what I mentioned about re-search-forward, and O(1) time complexity as well. John