From: Robert P. Goldman <rpgoldman@sift.info>
To: emacs-orgmode@gnu.org
Subject: Can we make a refloc programmatically?
Date: Mon, 28 Dec 2009 19:28:48 +0000 (UTC) [thread overview]
Message-ID: <loom.20091228T201930-765@post.gmane.org> (raw)
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
reply other threads:[~2009-12-28 19:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20091228T201930-765@post.gmane.org \
--to=rpgoldman@sift.info \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).