emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Bug: Capturing to datetree with inactive timestamp messes up level of heading
Date: Sat, 22 Aug 2015 00:38:57 +0200	[thread overview]
Message-ID: <871tewjmgu.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <20150819220651.GE2464@boo.workgroup> (Gregor Zattler's message of "Thu, 20 Aug 2015 00:06:51 +0200")

Hello,

Gregor Zattler <telegraph@gmx.net> writes:

> customizing org to add timestamps in datetrees via …
> (org-datetree-add-timestamp (quote inactive) nil nil "Add an
> inactive time stamp when create a datetree entry.")… and
> activating a minimal capture template which captures to a
> datetree results in:
>
> a)
>
> * 2015                                  
> ** 2015-08 August                       
> *** 2015-08-19 Mittwoch                 
> [2015-08-19 Mi]                         
> ** actual entry heading of captured item
>
> The heading of the newly captured item is at level 2 instead at
> level 4.  I consider this to be a bug.  A second capture item to
> the same day is correctly created at level 4 (and bevor the first
> captured item which does not belong to the same (or any) day in
> the datetree).

Fixed. Thank you.

> 2)
>
> The timestamp is added to the heading of the day under which the
> captured item is stored iff the day entry is created for this
> capture.
>
> I think the timestamp should go with the actual captured entry.
> This allows for a timestamp for each captured entry under the
> same date heading.  They may be made at different days.

This is a different feature. Since it belongs to the captured entry, the
timestamp should be defined in your capture template (e.g. "%t"
placeholder) instead.

> 3)
>
> The timestamp adds only a date but I think it’s much more
> interesting to capture with date+time.

This is not the purpose of `org-datetree-add-timestamp' variable. 

Its main uses are to link datetrees with agenda and to build time-based
sparse trees from a datetree.

> Think of several journal entries all done at the same day but at
> different times of a day.

See above. You can use "%T".


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2015-08-21 22:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-19 22:06 Bug: Capturing to datetree with inactive timestamp messes up level of heading Gregor Zattler
2015-08-21 22:38 ` Nicolas Goaziou [this message]
2015-08-22  7:15   ` 3 thanks (was: Re: Bug: Capturing to datetree with inactive timestamp messes up level of heading) Gregor Zattler

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=871tewjmgu.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --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).