emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Refile: refile to any open file.
@ 2012-02-26  1:16 lngndvs
  2012-02-26  9:11 ` suvayu ali
  0 siblings, 1 reply; 8+ messages in thread
From: lngndvs @ 2012-02-26  1:16 UTC (permalink / raw)
  To: org-mode


It  occurs from time to time that I wish to refile to an open file, that
is not one of my org-refile-targets.  It doesn't make sense to use
org-agenda-files for refile targets since I might have other files open
for various reasons.  So I thought, why not either declare that any open
file is a refile target, or else write a function that will execture
org-refile with org-refile-targets set to include all open files.   In
truth, it would be even better to include org-agenda-files in the set of
target files.   

I have been using the function oog in org-occur-goto.el to search any
open file, so somewhere in that file is a way to find  open files.  What
remains is to use some condition from this file to declare
org-refile-targets.   I understand that a function can be used as a
value of this variable.  

I could spend all night working on this, or, ask on this list.

Can anyone point to a good way to declare that BOTH all open
buffers/files AND org-agenda-files as org-refile-targets?

A hint would help.

Alan Davis

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-08-14 14:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-26  1:16 Refile: refile to any open file lngndvs
2012-02-26  9:11 ` suvayu ali
2014-08-13 20:15   ` Isaac
2014-08-13 21:16     ` Kyle Meyer
2014-08-13 21:24     ` Jorge A. Alfaro-Murillo
2014-08-14  3:55       ` Nick Dokos
2014-08-14  4:45         ` Kyle Meyer
2014-08-14 14:30           ` Isaac

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).