summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2013-05-07 13:11:59 (GMT)
committer Bastien Guerry <bzg@altern.org>2013-05-07 13:11:59 (GMT)
commiteceb2ff7d118b57b102cef373947f9d087136b86 (patch)
tree9eca87bf9690311aa894712ca20656a1bdf3c35d
parent706a546fcf7c860a23edc5ce22556806ed2aed12 (diff)
parent0df6bcdf2a28820799fec60e652c42fb144bea68 (diff)
downloadorg-mode-eceb2ff7d118b57b102cef373947f9d087136b86.zip
org-mode-eceb2ff7d118b57b102cef373947f9d087136b86.tar.gz
Merge branch 'maint'
-rw-r--r--lisp/org.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 8ec6781..87c9a07 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -11338,7 +11338,12 @@ avoiding backtracing. Refile target collection makes use of that."
(widen)
(while (org-up-heading-safe)
(when (looking-at org-complex-heading-regexp)
- (push (org-match-string-no-properties 4) rtn)))
+ (push (org-trim
+ (replace-regexp-in-string
+ ;; Remove statistical/checkboxes cookies
+ "\\[[0-9]+%\\]\\|\\[[0-9]+/[0-9]+\\]" ""
+ (org-match-string-no-properties 4)))
+ rtn)))
rtn)))))
(defun org-format-outline-path (path &optional width prefix separator)