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: Thu, 11 Oct 2018 08:35:09 +0200 Message-ID: <87va69dm8y.fsf@wirrsal.net> References: <87ftxecc03.fsf@nicolasgoaziou.fr> <20181010112450.17850-1-seb@wirrsal.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAUZ8-0007iE-Bt for emacs-orgmode@gnu.org; Thu, 11 Oct 2018 02:35:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAUZ5-0002Uo-55 for emacs-orgmode@gnu.org; Thu, 11 Oct 2018 02:35:22 -0400 Received: from wirrsal.net ([188.68.36.149]:55368 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 1gAUZ1-0002No-Jm for emacs-orgmode@gnu.org; Thu, 11 Oct 2018 02:35:17 -0400 In-reply-to: <20181010112450.17850-1-seb@wirrsal.net> 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: emacs-orgmode@gnu.org Cc: Nicolas Goaziou Sebastian Reu=C3=9Fe writes: > + (if (and (string-match "\\`\\(.*\\)/\\([^/]+\\)\\'" answ) I realize this is overly restrictive if you don=E2=80=99t have=20 =E2=80=98org-refile-use-outline-path=E2=80=99 set to =E2=80=98file=E2=80=99= and want to refile=20 under a newly created root headline. AFAICT this would also have=20 been an issue in the current master branch, prior to the patch. I=E2=80=99m going to lift this assumption a bit and extend the test case=20 for other values of =E2=80=98=E2=80=A6-use-outline-path=E2=80=99. If you notice anything in the mean time let me know. Kind regards, S. --=20 Insane cobra split the wood Trader of the lowland breed Call a jittney, drive away In the slipstream we will stay