Hi,

I am confronted to this bug in every version of Org (shipped with Emacs, from maint, and from master). Here is how I can reproduce it every time:

1. emacs -Q (in my case GNU Emacs 24.3.50.1, with Org-mode version 8.2.3a)

2. Evaluate this code:

(setq org-capture-templates
      '(("t" "test" entry (file+olp "~/org2.org" "Todo" "Refile") "* TODO %?" :prepend t)))

3. Create the "~/org2.org" file like this:

* Todo
** Refile
* Other headline 1
* Other headline 2

4. M-x org-capture, then do a capture with t.

5. The cycling behaviour gets really weird in org2.org, from the captured task until the end of the file. It is just like if whole area was considered as a single line (this becomes apparent by turning hl-line-mode on). This error appears while trying to cycle with TAB in the area: "byte-code: Invalid search bound (wrong side of point)".

6. Close the file and reopen it: everything is fine.

Is anyone else confronted to this? I don't know if this is Emacs or Org-related.

Thank you very much,

FC