summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien <bzg@gnu.org>2018-03-04 21:21:00 +0100
committerBastien <bzg@gnu.org>2018-03-04 21:21:00 +0100
commit74f6ed1eb0a7fffee930c7ddd8a7c7b408a27a9a (patch)
tree3fe8923d4c96fe342ef7c01e4037bd28a6bb6de0
parenta1dfd4ff20c2a6caeef195fccbdae09a726d5b7a (diff)
downloadorg-mode-74f6ed1eb0a7fffee930c7ddd8a7c7b408a27a9a.tar.gz
org-clock.el: Strip bracket links from the heading
* lisp/org-clock.el (org-clock--mode-line-heading): Strip links from the heading. This restores the previous behavior before commit 66554298. Thanks to Matt Lundin for reporting this.
-rw-r--r--lisp/org-clock.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 9fa136d..2aae043 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -518,7 +518,9 @@ cannot be translated."
(cond ((functionp org-clock-heading-function)
(funcall org-clock-heading-function))
((org-before-first-heading-p) "???")
- (t (org-get-heading t t t t))))
+ (t (replace-regexp-in-string
+ org-bracket-link-analytic-regexp "\\5"
+ (org-no-properties (org-get-heading t t t t))))))
(defun org-clock-menu ()
(interactive)