Skip to content

Commit

Permalink
Call dired-do-delete in correct buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyanming committed Jun 12, 2022
1 parent e4ce01a commit 2f2cfc3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions calibredb-dired.el
Expand Up @@ -66,7 +66,8 @@ library."
(let ((files (mapconcat
(lambda (file)
(shell-quote-argument (expand-file-name file)))
files " ")))
files " "))
(buffer (current-buffer)))
(set-process-sentinel
(calibredb-process :command "add"
:input files
Expand All @@ -78,7 +79,8 @@ library."
(setq calibredb-search-entries (calibredb-candidates))
(setq calibredb-full-entries calibredb-search-entries)
(calibredb-search-clear-filter)
(dired-do-delete))))))
(with-current-buffer buffer
(dired-do-delete)))))))

(provide 'calibredb-dired)

Expand Down

0 comments on commit 2f2cfc3

Please sign in to comment.