[求助] 怎样设置 find-ls-option 才能按日期排序

我希望 find-dired 结果能按日期排序,最新的在前面,我的设置如下:

(setq find-ls-option '("-type f -print0 | xargs -0 ls -alth" . "-alth"))

虽然dired buffer 右下角写的是 “dired by date”. 但实际上还是按 “name” 排序的。我命令行尝试了命令:

find . -type f -print0 | xargs -0 ls -alth

结果如预期,是按日期排序的。尝试了几个 find-ls-option设置,都不能让dired buffer里面的文件也能按日期排序。

find-ls-option-default-xargs

find-ls-option-default-xargs is a variable defined in find-dired.el.gz.

Value

("-print0 | sort -z | xargs -0 -e ls -ld" . "-ld")

提示错误 xargs: illegal option -- e

用了这个答案(Find files with find-dired sorting by date and by size - Emacs Stack Exchange)的方法,虽然工作,但会提示一个错误 error in process sentinel: Wrong type argument: integer-or-marker-p, nil [2 times] , 不知道怎么回事。