mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-25 23:32:52 +00:00
org-choose.el: Fix bug with checking siblings
Org-choose.el would check not only siblings but also any children of them. Patch by Tom Breton
This commit is contained in:
parent
21221dd564
commit
8f819da4d5
|
@ -1,3 +1,8 @@
|
||||||
|
2009-02-24 Carsten Dominik <carsten.dominik@gmail.com>
|
||||||
|
|
||||||
|
* lisp/org-choose.el (org-choose-get-fn-map-group): Only check
|
||||||
|
true siblings.
|
||||||
|
|
||||||
2009-02-18 Carsten Dominik <carsten.dominik@gmail.com>
|
2009-02-18 Carsten Dominik <carsten.dominik@gmail.com>
|
||||||
|
|
||||||
* lisp/org-R.el: New file.
|
* lisp/org-R.el: New file.
|
||||||
|
|
|
@ -389,8 +389,13 @@ setting was changed."
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(unless (org-up-heading-safe)
|
(unless (org-up-heading-safe)
|
||||||
(error "Chosing is only supported between siblings in a tree, not on top level"))
|
(error "Chosing is only supported between siblings in a tree, not on top level"))
|
||||||
|
(let
|
||||||
|
((level (org-reduced-level (org-outline-level))))
|
||||||
(save-restriction
|
(save-restriction
|
||||||
(org-map-entries fn nil 'tree)))))
|
(org-map-entries
|
||||||
|
fn
|
||||||
|
(format "LEVEL=%d" level)
|
||||||
|
'tree))))))
|
||||||
|
|
||||||
;;;_ . org-choose-get-highest-mark-index
|
;;;_ . org-choose-get-highest-mark-index
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue