浏览代码

Merge branch 'maint'

Conflicts:
	lisp/org-clock.el
Bastien Guerry 11 年之前
父节点
当前提交
51c37c5c19
共有 1 个文件被更改,包括 12 次插入9 次删除
  1. 12 9
      lisp/org-clock.el

+ 12 - 9
lisp/org-clock.el

@@ -1855,17 +1855,20 @@ Use \\[org-clock-remove-overlays] to remove the subtree times."
 This creates a new overlay and stores it in `org-clock-overlays', so that it
 will be easy to remove."
   (let (ov tx)
-    (org-move-to-column 60)
-    (unless (eolp) (skip-chars-backward "^ \t"))
-    (skip-chars-backward " \t")
-    (setq ov (make-overlay (point-at-bol) (point-at-eol))
-    	  tx (concat (buffer-substring (point-at-bol) (point))
-		     (make-string
-		      (max 0 (- (- 60 (current-column))
-				(length (org-get-at-bol 'line-prefix)))) ?·)
+    (beginning-of-line)
+    (when (looking-at org-complex-heading-regexp)
+      (goto-char (match-beginning 4)))
+    (setq ov (make-overlay (point) (point-at-eol))
+    	  tx (concat (buffer-substring-no-properties (point) (match-end 4))
+		     (org-add-props
+			 (make-string
+			  (max 0 (- (- 60 (current-column))
+				    (- (match-end 4) (match-beginning 4))
+				    (length (org-get-at-bol 'line-prefix)))) ?·)
+			 '(face shadow))
 		     (org-add-props
 			 (format " %9s " (org-minutes-to-clocksum-string time))
-			 (list 'face 'org-clock-overlay))
+			 '(face org-clock-overlay))
 		     ""))
     (if (not (featurep 'xemacs))
 	(overlay-put ov 'display tx)