emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Brian van den Broek <brian.van.den.broek@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: {Feature Request] Have org-capture-refile treat the buffer from which org-capture was called as current buffer
Date: Thu, 2 Feb 2012 02:00:57 +0200	[thread overview]
Message-ID: <CAF6DajLcNuDeWnx+8pUYxtnfm2YV=TXZZyfn1as1fConhHJf1w@mail.gmail.com> (raw)

Hi all,

My org-refile-targets definition includes

((nil :maxlevel . 5)
 (org-agenda-files :maxlevel . 10)
 ;; snip irrelevant details
 )

The list starting with nil works fine to allow me to refile items from
within an org file being visited to that same file irrespective of
whether that file appears elsewhere in the org-refile-targets
definition and that is indeed useful.

However, most of the time I am wanting to refile to an occasional use
(thus, not in org-refile-targets) org file, the desire arises when I
am working in that file and want to use org-capture to get an item
with one of my capture templates' boilerplate materials included. From
within the org-capture buffer, org-capture-refile doesn't offer the
buffer from which org-capture was invoked as a target (unless, of
course, it is visiting a file otherwise specified in
org-refile-targets).

That behaviour is completely in keeping with org-refile-targets'
docstring: "Nil means consider headings in the current buffer." After
all, once org-capture has been invoked, the capture-buffer is the
current buffer.

What I would like is for nil in org-refile-targets to mean is
"consider headings in the current buffer unless that buffer is a
capture buffer, in which case consider headings in the buffer from
which org-capture was invoked". (Actually, what I would really like is
for someone to point out that this is already possible and to forgive
my failure to find out how on my own ;-)

Thanks and best,

Brian vdB

                 reply	other threads:[~2012-02-02  0:01 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='CAF6DajLcNuDeWnx+8pUYxtnfm2YV=TXZZyfn1as1fConhHJf1w@mail.gmail.com' \
    --to=brian.van.den.broek@gmail.com \
    --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).