diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2016-07-31 00:20:35 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2016-07-31 00:20:35 +0200 |
commit | 9798da77b29b2dcd2d46a663e62c7c710936f4eb (patch) | |
tree | 3610891f692b9b770765f5fa215104fc6a38a27e | |
parent | 406ad6eb52f843441f45abd9699bc6f5bc473ab2 (diff) | |
download | org-mode-9798da77b29b2dcd2d46a663e62c7c710936f4eb.tar.gz |
Fix `org-map-tree' when called in an invisible heading
* lisp/org.el (org-map-tree): Move to closest heading above even if it
is invisible.
Suggested-by: talwrii talwrii <talwrii@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/108590>
-rw-r--r-- | lisp/org.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el index 05432bb..459e9a1 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -8406,7 +8406,7 @@ After top level, it switches back to sibling level." (defun org-map-tree (fun) "Call FUN for every heading underneath the current one." - (org-back-to-heading) + (org-back-to-heading t) (let ((level (funcall outline-level))) (save-excursion (funcall fun) |