org-mode/lisp
Carsten Dominik 10d59f78bb Squash yet another bug due to outline-functions skipping invisible headings.
Bernt Hansen writes:

> I think I have something that is reproducible.
>
> ,----[ /tmp/x.org ]
> |
> | * Refile Targets
> | ** TODO One
> | ** TODO Two
> | ** TODO Three
> | ** TODO Four
> | ** TODO Five
> | ** TODO Six
> | *** TODO Six.one
> | *** TODO Six.two
> | **** TODO Clock me
> | ** TODO Seven
> | ** TODO Eight
> | ** TODO Nine
> | ** TODO Ten
> | * Refile Tasks
> | ** TODO Refile Me
> `----
>
> ,----[ /tmp/minimal.emacs ]
> | (add-to-list 'load-path (expand-file-name "~/git/org-mode/lisp"))
> | (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))
> | (require 'org-install)
> |
> | (global-set-key "\C-cl" 'org-store-link)
> | (global-set-key "\C-ca" 'org-agenda)
> | (global-set-key "\C-cb" 'org-iswitchb)
> |
> | (setq org-log-done (quote time))
> | (setq org-log-into-drawer t)
> | (setq org-agenda-files '("/tmp/x.org"))
> | (setq user-init-file "/tmp/custom.el")
> |
> | (setq org-refile-allow-creating-parent-nodes nil)
> | (setq org-refile-targets (quote ((nil :maxlevel . 2) (org-agenda-files :maxlevel . 2))))
> | (setq org-refile-use-outline-path nil)
> | (setq org-todo-keywords (quote ((sequence "TODO(t!)" "STARTED(s!)" "|" "DONE(d!/!)") (sequence "WAITING(w@/!)" "SOMEDAY(S!)" "OPEN(O@)" "|" "CANCELLED(c@/!)") (sequence "QUOTE(q!)" "QUOTED(Q!)" "|" "APPROVED(A@)" "EXPIRED(E@)" "REJECTED(R@)"))))
> `----
>
> Steps to reproduce:
>
>  1. Save the files /tmp/x.org and /tmp/minimal.emacs
>  2. emacs -q -l /tmp/minimal.emacs /tmp/x.org
>  3. Go to CONTENTS view with S-TAB twice
>  4. Put point on **** TODO Clock Me
>  5. Clock in the task with C-c C-x C-i
>
>     This adds a logbook drawer with the clock
>
>  6. Fold to OVERVIEW view with S-TAB
>
>     So it looks like this
>
>     ,----[ x.org folder ]
>     |
>     | * Refile Targets...
>     | * Refile Tasks...
>     `----
>
>  7. M-x org-clock-goto
>
>     This reveals the buffer like so:
>
>     ,----
>     |
>     | * Refile Targets...
>     | **** TODO Clock me
>     |      :LOGBOOK:...
>     | ...
>     | * Refile Tasks...
>     `----
>
>     I think this is the critical step.
>
>  8. Put point on Refile Tasks
>  9. Show task to refile with TAB
>  10. Put point on ** TODO Refile Me
>  11. Refile to Ten with C-c C-w Ten RET
>  12. Put point on Refile Me
>  13. Reveal with C-c C-r
>
>      Shows that we are under TODO Ten.  So far so good
>
>      ,----
>      |
>      | * Refile Targets...
>      | **** TODO Clock me
>      |      :LOGBOOK:...
>      | ...
>      | ** TODO Ten
>      | *** TODO Refile Me
>      | * Refile Tasks
>      `----
>
>  14. Now repeat steps 10-13 but refile to 'Two' instead of 'Ten'
>
>      This goes to the wrong place.  This files under Nine for me
>
>      ,----
>      |
>      | * Refile Targets...
>      | **** TODO Clock me
>      |      :LOGBOOK:...
>      | ...
>      | ** TODO Nine
>      | *** TODO Refile Me
>      | ** TODO Ten
>      | * Refile Tasks
>      `----
>
>  15. Repeat steps 10-13 with refiling to 'Two' each time
>
>      This moves Refile Me up one task at a time until it gets to Two
>      ie. it refiles to Eight, then Seven, then Six, then Five, then
>      Four then Three, then Two.
>
> If you show contents view with S-TAB and then refile it goes to the
> right place immediately.  So this definitely has something to do with
> the folded view of the org file.
>
2009-08-28 08:51:07 +02:00
..
ChangeLog Squash yet another bug due to outline-functions skipping invisible headings. 2009-08-28 08:51:07 +02:00
ChangeLog.01 Split ChangeLog file into parts. 2008-05-08 08:16:38 +02:00
org-agenda.el Agenda: When in separate frame, mark the frame dedicated. 2009-08-27 18:18:28 +02:00
org-archive.el Push version number to 6.29trans 2009-08-06 12:07:20 +02:00
org-ascii.el Remove some blank leading blank lines from ASCII export. 2009-08-09 14:34:05 +02:00
org-attach.el Clean up after John's iswitchb patch 2009-08-19 09:33:17 +01:00
org-bbdb.el Push version number to 6.29trans 2009-08-06 12:07:20 +02:00
org-bibtex.el Push version number to 6.29trans 2009-08-06 12:07:20 +02:00
org-clock.el org-notify: bugfix by Bernt Hansen. 2009-08-26 11:28:25 +08:00
org-colview-xemacs.el Avoid calling `goto-line' from lisp programs 2009-08-27 10:24:09 +02:00
org-colview.el Avoid calling `goto-line' from lisp programs 2009-08-27 10:24:09 +02:00
org-compat.el Push version number to 6.29trans 2009-08-06 12:07:20 +02:00
org-docbook.el Incorporate Glen Morris' changes in downstream Emacs 2009-08-08 06:34:24 +02:00
org-exp-blocks.el Fix indentation in code export 2009-08-18 06:35:50 +01:00
org-exp.el Keep byte compiler happy 2009-08-27 15:18:25 +02:00
org-faces.el Mark running clock in the agenda. 2009-08-07 11:00:16 +02:00
org-feed.el Incorporate Glen Morris' changes in downstream Emacs 2009-08-08 06:34:24 +02:00
org-footnote.el Keep byte compiler happy 2009-08-27 15:18:25 +02:00
org-gnus.el Simplify storing links from gnus 2009-08-25 13:43:33 +02:00
org-html.el HTML export: Fix bugs with footnotes. 2009-08-16 06:41:30 +02:00
org-icalendar.el Incorporate Glen Morris' changes in downstream Emacs 2009-08-08 06:34:24 +02:00
org-id.el Fix some typos, add a new variable 2009-08-15 08:16:45 +02:00
org-indent.el Incorporate Glen Morris' changes in downstream Emacs 2009-08-08 06:34:24 +02:00
org-info.el Push version number to 6.29trans 2009-08-06 12:07:20 +02:00
org-inlinetask.el Incorporate Glen Morris' changes in downstream Emacs 2009-08-08 06:34:24 +02:00
org-irc.el Push version number to 6.29trans 2009-08-06 12:07:20 +02:00
org-jsinfo.el Push version number to 6.29trans 2009-08-06 12:07:20 +02:00
org-latex.el Revert "LaTeX export: Fix problem with emphasis in quotes" 2009-08-27 10:29:04 +02:00
org-list.el Avoid calling `goto-line' from lisp programs 2009-08-27 10:24:09 +02:00
org-mac-message.el Push version number to 6.29trans 2009-08-06 12:07:20 +02:00
org-macs.el Avoid calling `goto-line' from lisp programs 2009-08-27 10:24:09 +02:00
org-mew.el Push version number to 6.29trans 2009-08-06 12:07:20 +02:00
org-mhe.el Push version number to 6.29trans 2009-08-06 12:07:20 +02:00
org-mouse.el Push version number to 6.29trans 2009-08-06 12:07:20 +02:00
org-plot.el Push version number to 6.29trans 2009-08-06 12:07:20 +02:00
org-protocol.el Incorporate Glen Morris' changes in downstream Emacs 2009-08-08 06:34:24 +02:00
org-publish.el Clean up after John's iswitchb patch 2009-08-19 09:33:17 +01:00
org-remember.el Remember: Allow to escape % 2009-08-24 07:16:27 +02:00
org-rmail.el Push version number to 6.29trans 2009-08-06 12:07:20 +02:00
org-src.el Avoid calling `goto-line' from lisp programs 2009-08-27 10:24:09 +02:00
org-table.el Avoid problems with table alignment an overlays. 2009-08-27 12:50:36 +02:00
org-timer.el Use org-notify to show a notification and possibly play a sound. 2009-08-24 02:44:29 +08:00
org-vm.el Push version number to 6.29trans 2009-08-06 12:07:20 +02:00
org-w3m.el Push version number to 6.29trans 2009-08-06 12:07:20 +02:00
org-wl.el Push version number to 6.29trans 2009-08-06 12:07:20 +02:00
org-xoxo.el Incorporate Glen Morris' changes in downstream Emacs 2009-08-08 06:34:24 +02:00
org.el Squash yet another bug due to outline-functions skipping invisible headings. 2009-08-28 08:51:07 +02:00