From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Edgington Subject: Re: Smart archiving of subtrees with parent headlines Date: Mon, 12 Feb 2018 17:44:57 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37425) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elMqx-0006Uf-Vg for emacs-orgmode@gnu.org; Mon, 12 Feb 2018 17:45:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elMqx-0007uN-74 for emacs-orgmode@gnu.org; Mon, 12 Feb 2018 17:45:40 -0500 Received: from mail-ot0-x234.google.com ([2607:f8b0:4003:c0f::234]:37762) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1elMqx-0007u0-1M for emacs-orgmode@gnu.org; Mon, 12 Feb 2018 17:45:39 -0500 Received: by mail-ot0-x234.google.com with SMTP id e64so15510247ote.4 for ; Mon, 12 Feb 2018 14:45:38 -0800 (PST) In-Reply-To: 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" To: Ken Mankoff Cc: emacs-orgmode While further evaluating my code, I realized that it wasn't working when target headlines contained tags. I've updated the code to handle this case -- the result is posted as a gist since it may change later on, and all of you esteemed elisp hackers can more easily contribute to it that way, until it's worthy to be considered for inclusion in contrib. Here's the gist URL: https://gist.github.com/edgimar/072d99d8650abe81a9fe7c8687c0c993