From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] org: Support creating arbitrary headline paths when refiling Date: Sun, 14 Oct 2018 09:38:57 +0200 Message-ID: <87tvlpdlke.fsf@nicolasgoaziou.fr> References: <87va69dm8y.fsf@wirrsal.net> <20181011113005.4187-1-seb@wirrsal.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBazS-0003La-P1 for emacs-orgmode@gnu.org; Sun, 14 Oct 2018 03:39:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gBazP-0000Yc-4H for emacs-orgmode@gnu.org; Sun, 14 Oct 2018 03:39:06 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:35743) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gBazO-0000X3-Rk for emacs-orgmode@gnu.org; Sun, 14 Oct 2018 03:39:03 -0400 In-Reply-To: <20181011113005.4187-1-seb@wirrsal.net> ("Sebastian =?utf-8?Q?Reu=C3=9Fe=22's?= message of "Thu, 11 Oct 2018 13:30:05 +0200") 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: Sebastian =?utf-8?Q?Reu=C3=9Fe?= Cc: emacs-orgmode@gnu.org Hello, Sebastian Reu=C3=9Fe writes: > * org.el (org--refile-new-path): Add. > (org-refile): Use it. > (org-refile-new-child): Support creating new root nodes. > > * test-org.el (test-org/org-refile): Add test. > > While =E2=80=98org-refile=E2=80=99 currently supports creating new headli= nes when > refiling, only one single headline can be created this way. For > convenience, we now generalize this use-case to support creating > arbitrary headline paths on the fly. I still cannot make it work property. With the following document: --8<---------------cut here---------------start------------->8--- * Foo ** Bar * Foo2 --8<---------------cut here---------------end--------------->8--- Trying to refile "Foo2" under "Foo/Bar/Baz/" results in: --8<---------------cut here---------------start------------->8--- * Foo ** Bar * Foo ** Bar *** Baz **** Foo2 --8<---------------cut here---------------end--------------->8--- Regards, --=20 Nicolas Goaziou