summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Wahl <marcowahlsoft@gmail.com>2017-11-10 19:35:35 +0100
committerMarco Wahl <marcowahlsoft@gmail.com>2017-11-10 19:35:35 +0100
commit12e41c445b9b810da1935f298fa30779a2fda524 (patch)
tree5bbd795ae6cb5465d8af95798e4db9a677a33a95
parent0880fc580eedb1d2266817932165ecf3f6cbdd73 (diff)
downloadorg-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.el2
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)