diff options
author | Marco Wahl <marcowahlsoft@gmail.com> | 2017-11-10 19:35:35 +0100 |
---|---|---|
committer | Marco Wahl <marcowahlsoft@gmail.com> | 2017-11-10 19:35:35 +0100 |
commit | 12e41c445b9b810da1935f298fa30779a2fda524 (patch) | |
tree | 5bbd795ae6cb5465d8af95798e4db9a677a33a95 | |
parent | 0880fc580eedb1d2266817932165ecf3f6cbdd73 (diff) | |
download | org-mode-12e41c445b9b810da1935f298fa30779a2fda524.tar.gz |
org-attach: Fix handling of ATTACH tag at sychronize
* lisp/org-attach.el (org-attach-sync): Remove ATTACH tag at
synchronize when no files left.
-rw-r--r-- | lisp/org-attach.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-attach.el b/lisp/org-attach.el index 38b79ce..cd6b413 100644 --- a/lisp/org-attach.el +++ b/lisp/org-attach.el @@ -507,7 +507,7 @@ This can be used after files have been added externally." (let ((attach-dir (org-attach-dir))) (when attach-dir (let ((files (org-attach-file-list attach-dir))) - (and files (org-attach-tag)) + (org-attach-tag (not files)) (when org-attach-file-list-property (dolist (file files) (unless (string-match "^\\.\\.?\\'" file) |