From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert P. Goldman Subject: Can we make a refloc programmatically? Date: Mon, 28 Dec 2009 19:28:48 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NPLHQ-00014f-SS for emacs-orgmode@gnu.org; Mon, 28 Dec 2009 14:29:24 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NPLHL-0000wM-Ul for emacs-orgmode@gnu.org; Mon, 28 Dec 2009 14:29:24 -0500 Received: from [199.232.76.173] (port=36581 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NPLHL-0000vv-IV for emacs-orgmode@gnu.org; Mon, 28 Dec 2009 14:29:19 -0500 Received: from lo.gmane.org ([80.91.229.12]:51665) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NPLHL-0006Pl-3q for emacs-orgmode@gnu.org; Mon, 28 Dec 2009 14:29:19 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NPLHD-0008Sp-MW for emacs-orgmode@gnu.org; Mon, 28 Dec 2009 20:29:12 +0100 Received: from 216.243.156.16.real-time.com ([216.243.156.16]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Dec 2009 20:29:11 +0100 Received: from rpgoldman by 216.243.156.16.real-time.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Dec 2009 20:29:11 +0100 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 I find that when I'm refiling my MobileOrg tasks, I almost always want them to go to one particular place (my master todo list). I'd like to make a command that refiles to that location, specifically. The closest I've been able to get to this is to bind the org-refile-targets dynamic variable around a call to org-refile. This gives me a single candidate location, which I get if I press the tab key for completion. But it seems wrong to have to press that tab key. I believe I could avoid that, if I could pass a rfloc argument to org-refile, but I'm not sure how to make one of these data structures (not for the first time, I wish that defstruct was in elisp...). Is there some function to which one could pass a filename and a header regexp? thanks, Robert