0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-07-20 01:56:29 +00:00

org.el (org-get-outline-path): Remove statistical and checkboxes cookies

* org.el (org-get-outline-path): Remove statistical and
checkboxes cookies.

Thanks to Marcel van der Boom for reporting this.
This commit is contained in:
Bastien Guerry 2013-05-07 15:11:47 +02:00
parent a8d6ef3676
commit 0df6bcdf2a

View file

@ -11325,7 +11325,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)