summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2010-03-24 22:19:55 +0100
committerCarsten Dominik <carsten.dominik@gmail.com>2010-03-24 22:19:55 +0100
commit80d0b06fbf3d33e6b1dc2b3cd29ec389c73f619b (patch)
treeecb0a6cc6ab0baa648b16237aaedb048943ab4f9
parent7e476db19639a5de4b8754a158844590e8586216 (diff)
downloadorg-mode-80d0b06fbf3d33e6b1dc2b3cd29ec389c73f619b.tar.gz
Attachments: Commit to git after deleting a file
Patch by David Maus
-rwxr-xr-xlisp/ChangeLog1
-rw-r--r--lisp/org-attach.el3
2 files changed, 3 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e26454e..0fc491a 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,6 +1,7 @@
2010-03-24 Carsten Dominik <carsten.dominik@gmail.com>
* org-attach.el (org-attach-commit): Remove dependence on xargs.
+ (org-attach-delete-one): Commit after deleting a file.
* org-latex.el (org-export-latex-fontify): Do not mistake table.el
borders for strike-through emphasis.
diff --git a/lisp/org-attach.el b/lisp/org-attach.el
index 61b85c4..8533a75 100644
--- a/lisp/org-attach.el
+++ b/lisp/org-attach.el
@@ -327,7 +327,8 @@ The attachment is created as an Emacs buffer."
(setq file (expand-file-name file attach-dir))
(unless (file-exists-p file)
(error "No such attachment: %s" file))
- (delete-file file)))
+ (delete-file file)
+ (org-attach-commit)))
(defun org-attach-delete-all (&optional force)
"Delete all attachments from the current task.