浏览代码

`org-get-refile-targets': don't include [/] cookies in targets.

This was requested by Marcel van der Boom <marcel@hsdev.com>.
Bastien Guerry 14 年之前
父节点
当前提交
0c67513e7d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lisp/org.el

+ 1 - 0
lisp/org.el

@@ -9899,6 +9899,7 @@ on the system \"/user@host:\"."
 			 (setq level (org-reduced-level
 				      (- (match-end 1) (match-beginning 1)))
 			       txt (org-link-display-format (match-string 4))
+			       txt (replace-regexp-in-string " *\[[0-9]+/[0-9]+\]$" "" txt)
 			       re (format org-complex-heading-regexp-format
 					  (regexp-quote (match-string 4))))
 			 (when org-refile-use-outline-path