Attachments: Commit to git after deleting a file

Patch by David Maus
This commit is contained in:
Carsten Dominik 2010-03-24 22:19:55 +01:00
parent 7e476db196
commit 80d0b06fbf
2 changed files with 3 additions and 1 deletions

View File

@ -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.

View File

@ -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.