branch: externals/dired-duplicates
commit b619ca15a1ed9b4ce652e9b57f002c2a375df9f1
Author: Harald Judt <[email protected]>
Commit: Harald Judt <[email protected]>

    Make pre Emacs-29 hacks more generic and less intrusive
    
    Make the revert-buffer-function calls more generic so the hack can also be 
used
    in the non-duplicate files feature.
    
    Signed-off-by: Harald Judt <[email protected]>
---
 dired-duplicates.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dired-duplicates.el b/dired-duplicates.el
index 56a4c82aa1..3bf0de3352 100644
--- a/dired-duplicates.el
+++ b/dired-duplicates.el
@@ -294,7 +294,7 @@ This is the same as `dired-do-delete', but calls
 `dired-duplicates-dired-revert' afterwards."
     (interactive)
     (dired-do-delete arg)
-    (dired-duplicates-dired-revert)))
+    (apply revert-buffer-function nil nil)))
 
 (when (< emacs-major-version 29)
   (defun dired-duplicates--do-flagged-delete (&optional nomessage)
@@ -307,7 +307,7 @@ This is the same as `dired-do-flagged-delete', but calls
 `dired-duplicates-dired-revert' afterwards."
     (interactive)
     (dired-do-flagged-delete nomessage)
-    (dired-duplicates-dired-revert)))
+    (apply revert-buffer-function nil nil)))
 
 (defvar dired-duplicates-map
   (let ((map (make-sparse-keymap)))

Reply via email to