diff options
author | Marco Wahl <marcowahlsoft@gmail.com> | 2019-01-28 09:26:18 +0100 |
---|---|---|
committer | Marco Wahl <marcowahlsoft@gmail.com> | 2019-01-28 09:26:18 +0100 |
commit | 9018e755fe13b023c0538d5ce0b6dd2b0de5a62d (patch) | |
tree | 6791dbd633a3e76b4031e132156b1000acde001a | |
parent | 5c07b4522c65cde8be8e916804466a5c7b597018 (diff) | |
download | org-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.el | 4 |
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)))) |