浏览代码

Do not set the file name of the temporary buffer during capture

Carsten Dominik 14 年之前
父节点
当前提交
a77dce0eac
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lisp/org-capture.el

+ 1 - 0
lisp/org-capture.el

@@ -1001,6 +1001,7 @@ The template may still contain \"%?\" for cursor positioning."
       (insert template)
       (goto-char (point-min))
       (org-capture-steal-local-variables buffer)
+      (setq buffer-file-name nil)
       ;; Simple %-escapes
       (while (re-search-forward "%\\([tTuUaiAcxkKI]\\)" nil t)
 	(unless (org-capture-escaped-%)