From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: Faster version of org-find-olp Date: Tue, 04 Feb 2020 09:54:54 -0800 Message-ID: <87tv46me4x.fsf@ericabrahamsen.net> References: <871rxku0po.fsf@alphapapa.net> <87eevazs0m.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:54383) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iz2Pc-00077U-Si for emacs-orgmode@gnu.org; Tue, 04 Feb 2020 12:55:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iz2Pb-0003VW-Rq for emacs-orgmode@gnu.org; Tue, 04 Feb 2020 12:55:00 -0500 In-Reply-To: <87eevazs0m.fsf@gnu.org> (Bastien's message of "Tue, 04 Feb 2020 09:16:41 +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-mx.org@gnu.org Sender: "Emacs-orgmode" To: Bastien Cc: Adam Porter , emacs-orgmode@gnu.org Bastien writes: > Hi Adam, > > Adam Porter writes: > >> While working on org-recent-headings, I thought I needed a version of >> org-find-olp that behaved slightly differently, so I wrote a new >> function. > > thanks for working on such improvements. Is there something here we > can integrate in Org (master)? If possible, let's just optimize the > current functions with no added constraints or features, then see if > new options and features can be useful. I ended up writing a function on top of that that does find-or-create, so you can go to a certain outline path, creating and inserting (optionally in sorted order) the missing segments as you go. It was fairly difficult to get right, so perhaps it will be of use to someone, or appropriate for Worg or even Org proper: https://github.com/girzel/timesheet.el/blob/master/timesheet.el#L250 Yrs, Eric