fix(popup): add wdired hacks

Previously, wdired actions will not close popup windows, which is
cumbersome to use. We've already added similar hacks to dired. Now it's
time to add similar hacks to wdired.
This commit is contained in:
Amos Bird 2023-09-06 20:33:27 +08:00 committed by Yann Esposito (Yogsototh)
parent 92cb788cc9
commit 840463bf30
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -372,6 +372,12 @@ Ugh, such an ugly hack."
(letf! ((#'switch-to-buffer-other-window #'pop-to-buffer))
(apply fn args))))
;;;###package wdired
(progn
;; close the popup after you're done with a wdired buffer
(advice-add #'wdired-abort-changes :after #'+popup-close-a)
(advice-add #'wdired-finish-edit :after #'+popup-close-a))
;;;###package wgrep
(progn
;; close the popup after you're done with a wgrep buffer