forked from mirrors/org-mode
Attachments: Commit to git after deleting a file
Patch by David Maus
This commit is contained in:
parent
7e476db196
commit
80d0b06fbf
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue