* [patch] org-attach.el: Commit after deleting one file
@ 2010-03-24 19:18 David Maus
2010-03-24 21:20 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: David Maus @ 2010-03-24 19:18 UTC (permalink / raw)
To: Org Mode
[-- Attachment #1.1.1: Type: text/plain, Size: 217 bytes --]
And another one: Currently attachment directory and git repository are
not synchronized after deletion of one file.
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de
[-- Attachment #1.1.2: org-attach-commit-delete-one.diff --]
[-- Type: application/octet-stream, Size: 462 bytes --]
--- code/elisp/org-mode/lisp/org-attach.el 2010-03-24 11:18:06.000000000 +0100
+++ org-attach.el 2010-03-24 12:26:10.000000000 +0100
@@ -322,7 +322,8 @@
(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.
[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch] org-attach.el: Commit after deleting one file
2010-03-24 19:18 [patch] org-attach.el: Commit after deleting one file David Maus
@ 2010-03-24 21:20 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2010-03-24 21:20 UTC (permalink / raw)
To: David Maus; +Cc: Org Mode
Applied, thanks.
- Carsten
On Mar 24, 2010, at 8:18 PM, David Maus wrote:
>
> And another one: Currently attachment directory and git repository are
> not synchronized after deletion of one file.
>
> -- David
> --
> OpenPGP... 0x99ADB83B5A4478E6
> Jabber.... dmjena@jabber.org
> Email..... dmaus@ictsoc.de
> <org-attach-commit-delete-
> one.diff>_______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-24 21:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-24 19:18 [patch] org-attach.el: Commit after deleting one file David Maus
2010-03-24 21:20 ` Carsten Dominik
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.