fix: require tramp to avoid void function error `tramp-tramp-file-p'

This commit is contained in:
zedhugh committed 2026-04-30 14:29:30 +08:00
1 parent 87a7e630b4
commit 3e62a4b3ca
1 file changed
+1
+1
View File
@@ -159,6 +159,7 @@ Directory entries are excluded from the returned list."
(defun creature/play-with-mpv (filename) (defun creature/play-with-mpv (filename)
"Play local media FILENAME with mpv, including Blu-ray directories and images." "Play local media FILENAME with mpv, including Blu-ray directories and images."
(require 'tramp)
(cond (cond
((not (executable-find "mpv")) ((not (executable-find "mpv"))
(user-error "mpv: executable not found")) (user-error "mpv: executable not found"))