Selaa lähdekoodia

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

Carsten Dominik 14 vuotta sitten
vanhempi
commit
a77dce0eac
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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-%)