Browse Source

Erase buffer for txt export.

Carsten Dominik 16 years ago
parent
commit
339e5fb010
2 changed files with 5 additions and 0 deletions
  1. 4 0
      lisp/ChangeLog
  2. 1 0
      lisp/org-agenda.el

+ 4 - 0
lisp/ChangeLog

@@ -1,3 +1,7 @@
+2008-09-02  Carsten Dominik  <dominik@science.uva.nl>
+
+	* org-agenda.el (org-write-agenda): Erase buffer for txt export.
+
 2008-09-01  Carsten Dominik  <dominik@science.uva.nl>
 
 	* org-exp.el (org-html-do-expand): Allow {} to terminate

+ 1 - 0
lisp/org-agenda.el

@@ -1879,6 +1879,7 @@ higher priority settings."
 	  (t
 	   (let ((bs (buffer-string)))
 	     (find-file file)
+	     (erase-buffer)
 	     (insert bs)
 	     (save-buffer 0)
 	     (kill-buffer (current-buffer))