Skip to content

Commit 1670368

Browse files
committed
fix(core): Mark files before retrieving the package-dir-info
1 parent 6bc41e5 commit 1670368

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lisp/core/install-file.el

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@
5151
;; Note `package-dir-info' doesn't work outside of dired mode!
5252
(let ((pkg-desc (with-temp-buffer
5353
(dired path)
54+
;; After Emacs 31, the function `package-dir-info'
55+
;; will respect the marked files.
56+
(dired-mark-files-in-region (point-min) (point-max))
5457
(ignore-errors (package-dir-info)))))
5558
(unless pkg-desc
5659
;; `package-dir-info' will return nil if there is no `-pkg.el'

0 commit comments

Comments
 (0)