emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Charles Cave <charles.cave@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Solved the problem of org-capture apparently not working
Date: Sat, 5 Feb 2011 00:32:21 +0000 (UTC)	[thread overview]
Message-ID: <loom.20110205T011814-494@post.gmane.org> (raw)

In early January I posted what I thought was a bug report with org-capture.

I found that capturing to a date-tree didn't always work and in one file the 
capture was written to the wrong place.

Well, the problem was with the data!  One of my headings began with 2011.

The tree looked something like this (edited)

* 2010
** 2010-12 December
*** 2010-12-05 Sunday
**** A heading
**** 2011 Actions  <---------- this caused the problem
**** Another heading
...
*** 2010-12-06 Monday
...
...


In 2011 when I captured into this file's date-tree, 
org-capture found the headline 2011 Actions which matched the algorithm
and the captured item appeared at the end of the headings at that level.

My suggestion to eliminate the problem is to modify the org-capture algorithm
so years have to match beginning of line + one asterisk + one space + the year

Similarly, months could match beginning of line + two asterisks + one space + 
the year + hyphen + month number + space + Monthname.    But the chance of this 
format heading appearing outside a date-tree would be very low.

Charles
 

             reply	other threads:[~2011-02-05  0:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-05  0:32 Charles Cave [this message]
2011-02-05  4:27 ` Solved the problem of org-capture apparently not working Puneeth Chaganti
2011-02-05  6:48   ` [PATCH] " Puneeth Chaganti
2011-02-08 18:50     ` Puneeth Chaganti
2011-02-10 14:56     ` Bastien
2011-02-10 15:13       ` Puneeth Chaganti
2011-02-10 14:55 ` Bastien

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.20110205T011814-494@post.gmane.org \
    --to=charles.cave@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).