From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Raymond Zeitler" Subject: Refile to a different Org file? Date: Wed, 24 Nov 2010 16:26:27 -0500 Message-ID: References: <201011241714.oAOHE4bs026263@hormel5.ieee.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=57327 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLMrO-0007LG-Lg for emacs-orgmode@gnu.org; Wed, 24 Nov 2010 16:26:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLMrK-0006ds-HF for emacs-orgmode@gnu.org; Wed, 24 Nov 2010 16:26:38 -0500 Received: from nm1.bullet.mail.sp2.yahoo.com ([98.139.91.71]:42409) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PLMrK-0006dE-9E for emacs-orgmode@gnu.org; Wed, 24 Nov 2010 16:26:34 -0500 In-Reply-To: <201011241714.oAOHE4bs026263@hormel5.ieee.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: 'Raymond Zeitler' I'm trying to change the value of org-refile-targets to enable me to refile to the other files that make up my agenda view. Its value started out as just nil, which worked exactly right for one file because I was able to refile to all the *categories* in ~/todo.org, using tab completion, and it didn't get confused by tags or heading names. So far I've used customization to put this into the appropriate section of my .emacs: '(org-refile-targets (quote ((org-agenda-files :maxlevel . 1) (nil :maxlevel . 1)))) This doesn't work the way I expect. I figured out that I can refile if I specify the heading "Tasks" and the filename. But I cannot refile to any categories other than the ones in ~/todo.org. And sometimes I get choices that I don't want where the heading starts with the same text as the category name. BTW, I use unique category names across all files using this structure: * Tasks #+CATEGORY: DM_Tasks My setup files (.emacs and .orgmode) are a modified version of John Wiegley's tutorial setup (sans the above customization) and can be found on the Emacs wiki at this link: http://www.emacswiki.org/emacs/RaymondZeitler Is it possible to get the original "nil" behavior while searching through all agenda files? Or should I just use unique Level 1 headings in each file? How do other folks use Org-mode with multiple files? Hope this makes sense. Thanks -- Raymond Zeitler