From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Faster version of org-find-olp Date: Mon, 10 Feb 2020 08:17:00 +0100 Message-ID: <87zhdq9aj7.fsf@gnu.org> References: <871rxku0po.fsf@alphapapa.net> <87eevazs0m.fsf@gnu.org> <87tv46me4x.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:59881) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j13JX-0001Pj-9Q for emacs-orgmode@gnu.org; Mon, 10 Feb 2020 02:17:04 -0500 In-Reply-To: <87tv46me4x.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Tue, 04 Feb 2020 09:54:54 -0800") 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: Eric Abrahamsen Cc: Adam Porter , emacs-orgmode@gnu.org Hi Eric, Eric Abrahamsen writes: > 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 thanks for this - don't hesitate to reference it somewhere on Worg if you think that's useful. If you think this should go to Org's core, please make a patch and tell what's the difference with your patch and how to test it to make sure we really understand the issue at stake. I don't have any issue with the current implementation of `org-find-olp' so I cannot really know. Thanks! -- Bastien