问题描述
在OS X 10.5 Emacs 23.2中,如果我尝试按 dired-sort-toggle-or-edit
以前缀参数 - sort = extension
或 -X
,我得到:
insert-directory:列表目录失败但`access-file'工作
并且dired缓冲区变为空。我尝试设置
(setq dired-use-ls-dired nil)
/ pre>
但这没有任何效果。
dired-sort-toggle-or-edit
并按扩展名排序似乎在我的Ubuntu框上工作正常。任何人都知道发生了什么?解决方案安装的
ls
在OS X上不支持-X
或任何长参数,如- sort
。设置dired-use-ls-dired
将不会有任何影响; dired将始终使用ls,但是如果该变量为非零,则它将通过- dired
至ls。
如果你想要这种类型的排序,你可以使用像fink这样的东西来安装coreutils,这将提供一个更像你在Ubuntu中使用的ls。
On OS X 10.5 Emacs 23.2, in dired-mode, if I try to sort by
dired-sort-toggle-or-edit
with prefix argument--sort=extension
or-X
, I get:insert-directory: Listing directory failed but `access-file' worked
and the dired buffer becomes empty. I tried setting
(setq dired-use-ls-dired nil)
but this had no effect.
dired-sort-toggle-or-edit
and sorting by extension seems to work okay on my Ubuntu box. Anyone have a clue what's going on?解决方案The
ls
that's installed on OS X doesn't support-X
or any long arguments like--sort
. Settingdired-use-ls-dired
won't have any effect; dired will always use ls, but if that variable is non-nil, it will pass--dired
to ls.If you want that type of sorting, you can probably use something like fink to install coreutils, which will provide an ls more like what you're used to in Ubuntu.
这篇关于在OS X上严重排序错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!