From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Porter Subject: Re: refile workflow -- move to same heading in different file? Date: Thu, 03 Aug 2017 05:07:33 -0500 Message-ID: <87zibhnevu.fsf@alphapapa.net> References: <004901d30ba1$977df190$c679d4b0$@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddD2l-0001B9-T1 for emacs-orgmode@gnu.org; Thu, 03 Aug 2017 06:07:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddD2h-0005lf-OP for emacs-orgmode@gnu.org; Thu, 03 Aug 2017 06:07:51 -0400 Received: from [195.159.176.226] (port=44475 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ddD2h-0005kq-Gr for emacs-orgmode@gnu.org; Thu, 03 Aug 2017 06:07:47 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ddD2Z-0007lg-4A for emacs-orgmode@gnu.org; Thu, 03 Aug 2017 12:07:39 +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: emacs-orgmode@gnu.org "Raymond Zeitler" writes: > C-c C-w cannot seem to recognize any of my agenda files, even though > org-refile-targets is set to (in custom-set-variables): > > (org-refile-targets (quote ((org-agenda-files :regexp . "Tasks")))) > > Suppose org-agenda-files contains "~/proj1.org" "~/proj2.org" "~/proj3.org" "~/todo.org". > > My expectation is that when I press C-c C-w with point on a subheading > of Tasks in todo.org, I can specify, say proj1.org and get the > subheading moved to proj1.org under Tasks. However, org-refile > responds [No Match], even if I provide the file as ~/proj1.org. And > Emacs is visiting proj1.org in another buffer. Hi Raymond, Going on what you've provided, it sounds like it should work. A few suggestions: 1. In case you haven't yet (but you probably have), check describe-variable for org-refile-targets. 2. If you have any doubt about org-refile-targets being set correctly, experiment with setting it and calling org-refile inside a (let). 3. I haven't used the default Emacs completion in years; I'm so used to having Helm that when I have to run "emacs -q" now and then, completing buffer names and such is painful! :) So I'd suggest temporarily, at least, using Helm as the default completing-read method, which will make it much easier to debug by showing you the full list of candidates. That way, if it's empty to begin with, you know something's really wrong; or if it's full, but it shows [No Match] after you type something in, that should help you narrow down the cause. Hope this helps.