فهرست منبع

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.
Marco Wahl 6 سال پیش
والد
کامیت
9018e755fe
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      lisp/org-attach.el

+ 3 - 1
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))))