emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Roberto Huelga <rhuelga@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Patch org-capture-set-target-location
Date: Sun, 23 Nov 2014 19:15:53 +0100	[thread overview]
Message-ID: <87h9xp3hra.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAPJ+JL14BSLDYAiT=Nr=1j-EUrkV82me=GowCuYEuWjgfC4z8w@mail.gmail.com> (Roberto Huelga's message of "Sat, 22 Nov 2014 20:51:55 +0100")

Hello,

Roberto Huelga <rhuelga@gmail.com> writes:

> Patch proposal for org-capture-set-target-location

Thanks for the patch.

> The idea is that when somebody use the function or file+function targets
> you can make the template subheading from the heading where the
> custom-function set the point.
> org-capture-set-target-loction force the org-capture-plist :exact-position
> to (point).
> So the template is inserted in the same level not as subheading
>
> With my patch the custom-function can (org-capture-put :exact-position
> nil), and now if point its placed in a heading the template is created as
> his subheading.

AFAIU, :exact-position is an internal property (it isn't documented in
(info "(org) Template elements"). You are not expected to set it
directly.

After a cursory look into "org-capture.el", if (point) is on a headline,
the template should create a subheading (see `org-capture-place-entry').
Can't you use that instead?


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2014-11-23 18:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-22 19:51 Patch org-capture-set-target-location Roberto Huelga
2014-11-23 18:15 ` Nicolas Goaziou [this message]
2014-11-24 10:54   ` Roberto Huelga

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=87h9xp3hra.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=rhuelga@gmail.com \
    /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).