瀏覽代碼

Merge branch 'maint'

Bastien 4 年之前
父節點
當前提交
7b59fe0775
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      lisp/org-capture.el

+ 5 - 0
lisp/org-capture.el

@@ -735,6 +735,11 @@ captured item after finalizing."
 
   (run-hooks 'org-capture-prepare-finalize-hook)
 
+  ;; Update `org-capture-plist' with the buffer-local value.  Since
+  ;; captures can be run concurrently, this is to ensure that
+  ;; `org-capture-after-finalize-hook' accesses the proper plist.
+  (setq org-capture-plist org-capture-current-plist)
+
   ;; Did we start the clock in this capture buffer?
   (when (and org-capture-clock-was-started
 	     org-clock-marker