From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian =?utf-8?Q?Reu=C3=9Fe?= Subject: Re: [PATCH] org: Support creating arbitrary headline paths when refiling Date: Sun, 14 Oct 2018 10:05:38 +0200 Message-ID: <87bm7xhs19.fsf@wirrsal.net> References: <87va69dm8y.fsf@wirrsal.net> <20181011113005.4187-1-seb@wirrsal.net> <87tvlpdlke.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBbPA-0001WP-S7 for emacs-orgmode@gnu.org; Sun, 14 Oct 2018 04:05:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gBbP9-0003Sz-VQ for emacs-orgmode@gnu.org; Sun, 14 Oct 2018 04:05:40 -0400 Received: from wirrsal.net ([188.68.36.149]:41706 helo=mail.wirrsal.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gBbP9-0003Sd-OV for emacs-orgmode@gnu.org; Sun, 14 Oct 2018 04:05:39 -0400 In-reply-to: <87tvlpdlke.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Hello Nicolas, Nicolas Goaziou writes: > 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--- This was due to the trailing slash in the refile target. I now amended the regex to normalize such input and added a test case with a trailing slash. Care to give it another spin? Kind regards, S. -- Insane cobra split the wood Trader of the lowland breed Call a jittney, drive away In the slipstream we will stay