Re: [O] [PATCH] org: Support creating arbitrary headline paths when refiling

2018-10-14 Thread Nicolas Goaziou
Sebastian Reuße writes: > That’s odd, I can’t reproduce your example anymore. Is your Emacs > session still the same one as earlier today? While implementing the > patch I had to C-0 M-x org-refile occasionally, because earlier runs > had injected erroneous entries into the cache. I restarted Em

Re: [O] [PATCH] org: Support creating arbitrary headline paths when refiling

2018-10-14 Thread Sebastian Reuße
Nicolas Goaziou writes: AFAICT, it still doesn't work. I get the exact same result as detailed above. That’s odd, I can’t reproduce your example anymore. Is your Emacs session still the same one as earlier today? While implementing the patch I had to C-0 M-x org-refile occasionally, becau

Re: [O] [PATCH] org: Support creating arbitrary headline paths when refiling

2018-10-14 Thread Nicolas Goaziou
Sebastian Reuße writes: > Nicolas Goaziou writes: [...] >> With the following document: >> >> --8<---cut here---start->8--- >> * Foo >> ** Bar >> * Foo2 >> --8<---cut here---end--->8--- >> >> Trying to refile "Foo2" under

Re: [O] [PATCH] org: Support creating arbitrary headline paths when refiling

2018-10-14 Thread Sebastian Reuße
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

[O] [PATCH] org: Support creating arbitrary headline paths when refiling

2018-10-14 Thread Sebastian Reuße
* 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 ‘org-refile’ currently supports creating new headlines when refiling, only one single headline can be created this way. For con

Re: [O] [PATCH] org: Support creating arbitrary headline paths when refiling

2018-10-14 Thread Nicolas Goaziou
Hello, Sebastian Reuße 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 ‘org-refile’ currently supports creating new headlines when > refiling, only one

[O] [PATCH] org: Support creating arbitrary headline paths when refiling

2018-10-11 Thread Sebastian Reuße
* 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 ‘org-refile’ currently supports creating new headlines when refiling, only one single headline can be created this way. For con

Re: [O] [PATCH] org: Support creating arbitrary headline paths when refiling

2018-10-10 Thread Sebastian Reuße
Sebastian Reuße writes: + (if (and (string-match "\\`\\(.*\\)/\\([^/]+\\)\\'" answ) I realize this is overly restrictive if you don’t have ‘org-refile-use-outline-path’ set to ‘file’ and want to refile under a newly created root headline. AFAICT this would also have been an issue in

Re: [O] [PATCH] org: Support creating arbitrary headline paths when refiling

2018-10-10 Thread Sebastian Reuße
Hello Nicolas, Nicolas Goaziou writes: Compiling your patch generates the following warnings. org.el:11417:1:Warning: Unused lexical variable ‘parent’ org.el:11417:1:Warning: Unused lexical variable ‘child’ org.el:11417:1:Warning: Unused lexical variable ‘parent-target’ Goo

[O] [PATCH] org: Support creating arbitrary headline paths when refiling

2018-10-10 Thread Sebastian Reuße
* org.el (org--refile-new-path): Add. (org-refile): Use it. (org-refile-new-child): Make new nodes more compact. * test-org.el (test-org/org-refile): Add test. While ‘org-refile’ currently supports creating new headlines when refiling, only one single headline can be created this way. For conveni

Re: [O] [PATCH] org: Support creating arbitrary headline paths when refiling

2018-10-10 Thread Nicolas Goaziou
Hello, Sebastian Reuße writes: > * org.el (org--refile-new-path): Add. > (org-refile): Use it. > (org-refile-new-child): Make new nodes more compact. > > * test-org.el (test-org/org-refile): Add test. > > While ‘org-refile’ currently supports creating new headlines when > refiling, only one sing

[O] [PATCH] org: Support creating arbitrary headline paths when refiling

2018-10-07 Thread Sebastian Reuße
* org.el (org--refile-new-path): Add. (org-refile): Use it. (org-refile-new-child): Make new nodes more compact. * test-org.el (test-org/org-refile): Add test. While ‘org-refile’ currently supports creating new headlines when refiling, only one single headline can be created this way. For conveni