summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Wahl <marcowahlsoft@gmail.com>2019-01-28 09:26:18 +0100
committerMarco Wahl <marcowahlsoft@gmail.com>2019-01-28 09:26:18 +0100
commit9018e755fe13b023c0538d5ce0b6dd2b0de5a62d (patch)
tree6791dbd633a3e76b4031e132156b1000acde001a
parent5c07b4522c65cde8be8e916804466a5c7b597018 (diff)
downloadorg-mode-9018e755fe13b023c0538d5ce0b6dd2b0de5a62d.tar.gz
org-attach: update dired when attaching with the mv method
* lisp/org-attach.el (org-attach-dired-to-subtree): Revert dired buffer when the mv method is active.
-rw-r--r--lisp/org-attach.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/org-attach.el b/lisp/org-attach.el
index fc7067e..d16782e 100644
--- a/lisp/org-attach.el
+++ b/lisp/org-attach.el
@@ -626,7 +626,9 @@ Idea taken from `gnus-dired-attach'."
(select-window other-win)
(dolist (file files)
(org-attach-attach file))
- (select-window start-win)))
+ (select-window start-win)
+ (when (eq 'mv org-attach-method)
+ (revert-buffer))))