我有以下函数在我在 dired 缓冲区中标记的文件上运行 ediff:
(defun mkm/ediff-marked-pair ()
"Run ediff-files on a pair of files marked in dired buffer"
(interactive)
(let ((marked-files (dired-get-marked-files nil)))
(if (not (= (length marked-files) 2))
(message "mark exactly 2 files")
(ediff-files (nth 0 marked-files)
(nth 1 marked-files)))))
它仅适用于同一目录中的文件,我怎样才能使其适用于我在不同目录中标记的文件?