Browse Source

Keep archive buffer after archiving something to it

Carsten Dominik 15 years ago
parent
commit
343f3c4782
2 changed files with 4 additions and 6 deletions
  1. 3 0
      lisp/ChangeLog
  2. 1 6
      lisp/org-archive.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2009-10-28  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* org-archive.el (org-archive-subtree): Keep archive after
+	archiving something.
+
 	* org-id.el (org-id-update-id-locations): Add archive files if
 	that is required by `org-id-extra-files'.
 

+ 1 - 6
lisp/org-archive.el

@@ -304,12 +304,7 @@ this heading."
 
 	  ;; Save and kill the buffer, if it is not the same buffer.
 	  (when (not (eq this-buffer buffer))
-	    (save-buffer)
-	    ;; Check if it is OK to kill the buffer
-	    (unless
-		(or visiting
-		    (equal (marker-buffer org-clock-marker) (current-buffer)))
-	      (kill-buffer buffer)))
+	    (save-buffer))
 	  ))
       ;; Here we are back in the original buffer.  Everything seems to have
       ;; worked.  So now cut the tree and finish up.